[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Can someone benchmark this option please
From: |
Bernard Fouché |
Subject: |
Re: [avr-gcc-list] Can someone benchmark this option please |
Date: |
Wed, 23 Jul 2008 17:07:12 +0200 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
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