[Top][All Lists]

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

Re: [avr-gcc-list] Stack usage under heavy inlining

From: Paulo Marques
Subject: Re: [avr-gcc-list] Stack usage under heavy inlining
Date: Mon, 08 Sep 2008 16:06:37 +0100
User-agent: Thunderbird (X11/20071210)

Hi, Stu

Stu Bell wrote:
I don't understand your problem.  If I understand your situation, you

You missed the "..._then_ function C _and then_ function D..." part :)

So my example would look more like:

static int functionB(void) {
        uint8_t localB[32];
static int functionC(void) {
        uint8_t localC[32];
static int functionD(void) {
        uint8_t localD[32];
int functionA( int a ) {

When gcc inlines all the functions into functionA it allocates 96 bytes of stack, because it isn't capable of reusing the stack space anymore.

Paulo Marques
Software Development Department - Grupo PIE, S.A.
Phone: +351 252 290600, Fax: +351 252 290601
Web: www.grupopie.com

"Who is general Failure and why is he reading my disk?"

reply via email to

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