PreviousNext
Optimized constants
Help > Appendix > Code Optimization > Optimized constants

FLASH-                        RAM                Speed+

 

It is advisable to use constants, which generate smaller code. In the following example, the lower byte of the constant is 0, therefore a more efficient code is generated but the side effect is minimal.

 

#define DELAY 1000

startLongDelay( DELAY );

#define DELAY 1024

startLongDelay( DELAY );