alloca() called when i do not want it to be called

Manik, Raina (IE10) Manik.Raina@honeywell.com
Wed Sep 3 04:25:00 GMT 2003


Good day all gcc hackers,

I use cygwin gcc 2.9x (and 3.2 sometimes) on x86
or the pe executable format and i have a quick 
question about alloca().

1. If i support a new OS, i need to support alloca()
in libgcc.a for the new OS runtime.

2. Is there a way i prevent the compiler from generating
assembly code which calls alloca ()  ? Basically, i want
gcc to substitute inline the assembly which would do
what alloca() does without making a call to the function.
I tried -fno-builtin which prevents alloca() from being
defined even though it's called.

3. Is it true that if one declares a large array on stack,
gcc attempts to satisfy that memory requirement from the
.data section instead of the stack ?

Please copy me on replies since i am not subscribed to this
list...

thanks,
Manik



More information about the Gcc mailing list