mingw32 cross compiler & unwanted alloca
Thu May 11 01:57:00 GMT 2000
I am crosscompiling (and sometimes linking) Windows programs under Solaris using
mingw32 2.95.2. Mingw32 creates calls to __alloca for functions that declare large
auto arrays. Normal Solaris gcc (2.8.1) does not call alloca, it allocates the
specified amount of storage directly on the stack (this is what I want)
Is this a version problem, 2.8.1 vs. 2.95.2, or some other problem?
I don't like alloca and worse, MSVC libraries do not contain any alloca implementation.
(That is my goal, crosscompiling under Solaris and then final link using MSVC under
I think I remember once reading that it was possible to disable usage of alloca
for gcc but I haven't found such a compiler option (using mingw32-gcc -v --help).
Enea OSE Systems
org:Enea OSE Systems;R & D
More information about the crossgcc