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

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

Re: [avr-gcc-list] WinAVR - gcc 3.4.6 - AVR Studio - DuoCore PC - Stackp


From: Paulo Marques
Subject: Re: [avr-gcc-list] WinAVR - gcc 3.4.6 - AVR Studio - DuoCore PC - Stackpointer problem
Date: Mon, 27 Nov 2006 12:07:54 +0000
User-agent: Thunderbird 1.5.0.7 (X11/20060909)

Steffen Rose wrote:
Do the avr-gcc know an optimization, that the stack frame for all called functions are created within the first called function?

GCC usually inlines functions that are declared "static" and are used only once, even if they are pretty big, because it should be a win on register thrashing, prologues/epilogues, etc. It might also automatically inline functions that are "small enough".

However, I remember some people on LKML (where stack size is also a serious problem) complaining that gcc's prior to version 4 would accumulate the stack frame for all inlined functions on the top function.

Maybe you could try to compile with "-fno-inline -fno-inline-functions" to see if that makes a difference.

--
Paulo Marques - www.grupopie.com

"The face of a child can say it all, especially the
mouth part of the face."




reply via email to

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