Hi Andy.
avr-gcc -c -mmcu=at90can128 -finline-limit=10 -mcall-prologues -g -Os
-fsigned-char -funsigned-bitfields -fpack-struct -fshort-enums
-Wstrict-prototypes -std=gnu99:
section size addr
.text 68232 0
.bss 3557 8388864
.stab 157716 0
.stabstr 46996 0
Total 276501
The same with -fno-if-conversion:
section size addr
.text 68074 0
.bss 3557 8388864
.stab 157716 0
.stabstr 47019 0
Total 276366
(tests done with avr-gcc 4.3.0 & avr-libc 1.6.2 with a real world
application)
In my own tests to keep size at minimum while moving to gcc4.3.0, the
best option I found was '-finline-limit=X' with a very small X (10 in my
example)
What is the size of 'a' in your example? 8 bits? 32 bits?
Bernard
_______________________________________________
AVR-GCC-list mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list