[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
AW: [avr-gcc-list] Code size optimization
From: |
Haase Bjoern (PT-BEU/EMT) * |
Subject: |
AW: [avr-gcc-list] Code size optimization |
Date: |
Mon, 10 Jan 2005 14:27:08 +0100 |
Hi,
I think this might be related to the fact, that the function prologue/epilogue
is emmitted not by RTL constructs but explicitly. I don't know an easy cure for
this.
If you are using gcc.3.4.3 and have serious code-size problems, you might try
to compile your sources
with the -fnew-ra option in addition to -Os .
There stands a chance 50/50 that the compiler will not succeed in generating
assembler code for your application. For this reason this option is marked as
'not for production use'. If, however, -fnew-ra succeeds you could assume that
your code will be functional and correct and: *much* smaller. Expect about 5-10
% code size reduction. If gcc fails with an internal compiler error, consider
to split large source files into smaller ones and try to compile them
individually with -fnew-ra.
Yours,
Björn
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- AW: [avr-gcc-list] Code size optimization,
Haase Bjoern (PT-BEU/EMT) * <=