This is the mail archive of the
mailing list for the GCC project.
alloca() called when i do not want it to be called
- From: "Manik, Raina (IE10)" <Manik dot Raina at honeywell dot com>
- To: gcc at gcc dot gnu dot org
- Date: Tue, 2 Sep 2003 21:30:41 -0700
- Subject: alloca() called when i do not want it to be called
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