[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 1.5.0.14 (X11/20071210) |
Hi, Stu
Stu Bell wrote:
I don't understand your problem. If I understand your situation, you
have:
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 ) {
functionB();
functionC();
functionD();
}
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?"
- [avr-gcc-list] Stack usage under heavy inlining, Paulo Marques, 2008/09/08
- Re: [avr-gcc-list] Stack usage under heavy inlining, Tristan Gingold, 2008/09/08
- RE: [avr-gcc-list] Stack usage under heavy inlining, Weddington, Eric, 2008/09/08
- Re: [avr-gcc-list] Stack usage under heavy inlining, Tristan Gingold, 2008/09/08
- RE: [avr-gcc-list] Stack usage under heavy inlining, Weddington, Eric, 2008/09/08
- RE: [avr-gcc-list] Stack usage under heavy inlining, John Regehr, 2008/09/08
- RE: [avr-gcc-list] Stack usage under heavy inlining, Weddington, Eric, 2008/09/08