[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:

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


reply via email to

[Prev in Thread] Current Thread [Next in Thread]