[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [avr-gcc-list] Code optimistaion in AVR Tiny13
From: |
Ruud Vlaming |
Subject: |
Re: [avr-gcc-list] Code optimistaion in AVR Tiny13 |
Date: |
Mon, 16 Feb 2009 15:40:05 +0100 |
User-agent: |
KMail/1.9.1 |
On Monday 16 February 2009 15:11, Robert von Knobloch wrote:
> On inspection I find that the compiler has 'in-lined' at least 3
> function calls that I had written as a function to achieve compactness.
> Is there any way I can stop this, or is this a bug?
There has been some discussions about this before. After trying many
different optimization settings i concluded that
--param inline-call-cost=2
is -overall- the best setting for small projects. However, if you need to
minimize just one app, further reduction might be possible.
For example with things like:
-fno-inline-small-functions
-fno-split-wide-types
-fno-tree-scev-cprop
Also, you can prohibit the compiler to inline on a function by function basis.
Just to be sure you have no dead code around, include:
-ffunction-sections -Wl,--gc-sections -Wl,--relax
Ruud.
- [avr-gcc-list] Code optimistaion in AVR Tiny13, Robert von Knobloch, 2009/02/16
- Re: [avr-gcc-list] Code optimistaion in AVR Tiny13,
Ruud Vlaming <=
- Re: [avr-gcc-list] Code optimistaion in AVR Tiny13, Anatoly Sokolov, 2009/02/16
- [avr-gcc-list] RE: inline control, larry barello, 2009/02/16
- [avr-gcc-list] Re: inline control, David Brown, 2009/02/16
- RE: [avr-gcc-list] Re: inline control, Weddington, Eric, 2009/02/16
- [avr-gcc-list] Re: inline control, David Brown, 2009/02/16
- RE: [avr-gcc-list] Re: inline control, Weddington, Eric, 2009/02/16
[avr-gcc-list] Re: Code optimistaion in AVR Tiny13, David Brown, 2009/02/16