Code optomization ideas...(link)


Closed Thread
Results 1 to 5 of 5
  1. #1
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427

    Default Code optomization ideas...(link)

    I ran across this...

    looks like some good ideas to save a few bytes if your tight on code space or exectuion time...


    http://www.rcfaq.com/PIC/optimize.htm
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

  2. #2
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Code optomization ideas...(link)

    I posted that link in a thread recently, and Darrel advised against listening to any of it
    I trust that he knows this language better than I do, so I didn't look into it further.

    A few years back some (since removed) optimisations on that page used to work,
    but it appears some work has gone into PBP since then.

  3. #3
    Join Date
    Sep 2009
    Posts
    755


    Did you find this post helpful? Yes | No

    Default Re: Code optomization ideas...(link)

    That is nice way to get headache.You shouldn't use ASM instruction like it described on link. Because you must check bank, before use variable...

  4. #4
    Join Date
    Aug 2003
    Posts
    985


    Did you find this post helpful? Yes | No

    Default Re: Code optomization ideas...(link)

    Looking at it again, there is accessing variables from asm which will cause problems if the code is larger than a page,

    Some of the other stuff causes you to misrepresent in code, what you are actually writing, and if it does still work,
    you'll need a good memory when you're later trying to understand what you were doing.

  5. #5
    Join Date
    Oct 2009
    Location
    Utah, USA
    Posts
    427


    Did you find this post helpful? Yes | No

    Default Re: Code optomization ideas...(link)

    Theres an old addage that I learned years ago while studying analog microwave communications testing...

    1) pull your head out
    2) know what to expect
    3) question your results
    4) refer back to #1

    If I were to take a stab at adapting it to information on the internet...

    1) don't forget you got it from the internet
    2) know something about which you are studying
    3) question every thing you read on the internet
    4) refer back to #1

    (mabie someone else can improve on the above)

    I had not noticed your posting of the same link earlier, Art.
    Thanks for correcting me
    I definately value Darrels opinion.
    Dwight
    These PIC's are like intricate puzzles just waiting for one to discover their secrets and MASTER their capabilities.

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts