On 2013-04-19 09:21, veegee wrote: > On 2013-04-19 4:10 AM, veegee wrote: >> Furthermore, declaring macros like this: >> #define abc 48e6 >> as opposed to this: >> #define abc 48000000 >> also adds significant size (around +6% on a PIC32MX220F032B) to the >> program space usage. >=20 > Turns out that the constants need to be explicitly cast to a type like=20 > this: > #define abc (unsigned int) 48e6 Using 48e6 will most likely convince the compiler it's a float, unless=20 you typecast differently. That extra 6% was probably the relevant=20 floating point library code for whatever operations you did with the=20 define. David --=20 http://www.piclist.com/techref/piclist PIC/SX FAQ & list archive View/change your membership options at http://mailman.mit.edu/mailman/listinfo/piclist .