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 mailing list
AVR-GCC-list@nongnu.org
http://lists.nongnu.org/mailman/listinfo/avr-gcc-list