mingw32 cross compiler & unwanted alloca

Ola Liljedahl olli@enea.se
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
Windows).

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).
--
	Ola Liljedahl
	olli@enea.se
	Enea OSE Systems
begin:vcard 
n:Liljedahl;Ola
x-mozilla-html:FALSE
org:Enea OSE Systems;R & D
adr:;;;;;;
version:2.1
email;internet:olli@enea.se
title:Technical Manager
fn:Ola Liljedahl
end:vcard



More information about the crossgcc mailing list