You are here

Code optimization tips for 8-bit microcontrollers | Cypress Semiconductor

Code optimization tips for 8-bit microcontrollers

Last Updated: 
Apr 10, 2009

You are the project leader for a highly successful consumer product. One day you are asked to upgrade all of the devices in the field to add the latest "must have" feature. However, when you attempt to compile the new code you see the dreaded message "Program Memory Overflow". You've already turned on all of the optimizations in the compiler to make the last upgrade fit. Now you're stuck. Here are optimization techniques that have saved designers up to 10% of their code size, allowing new features and bug fixes to fit into program memory that is always just a bit too small.  To read more on this topic visit EDN.

Translated documents are for reference only. We recommend that you refer to the English-language version of a document if you are engaged in development of a design.