This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

OPTIMISING CODE

HI
all iam working on cygnal mcus,we have limited keil programme space of 1000bytes
now my programme is yet to cross the limit .
how to reduce the code size , if any one knows please put a reply to me

regards
john e

Parents
  • Pay attention to function parameter size and order. Read the function parameter passing section in the manual, so that you understand what the compiler will do with your parameters. Try to avoid writing functions that will spill parameters out of registers, and try to declare all your functions so that re-used parameters will stay in the same registers.

Reply
  • Pay attention to function parameter size and order. Read the function parameter passing section in the manual, so that you understand what the compiler will do with your parameters. Try to avoid writing functions that will spill parameters out of registers, and try to declare all your functions so that re-used parameters will stay in the same registers.

Children
No data