avr-gcc-list
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-gcc-list] Question about code size


From: Erik Christiansen
Subject: Re: [avr-gcc-list] Question about code size
Date: Fri, 16 Mar 2007 18:25:19 +1100
User-agent: Mutt/1.5.9i

On Thu, Mar 15, 2007 at 08:50:05PM -0800, Dave Hylands wrote:
> 
> Is there a different set of options I can use with 4.x to get smaller code 
> size?

Does -fno-default-inline do any good?

> It seems to be inlining the putch function which is called many times,
> and the inlined version is quite a bit bigger than calling the
> function.

If the above doesn't do it, how about:

#define NOINLINE __attribute__ ((__noinline__))

on the functions that shouldn't be inlined?
(OK, that could be laborious if there are a lot of them. :-)

Erik




reply via email to

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