g77 executable with largish array fails (solved?)
Gerrit P. Haase
gp@familiehaase.de
Tue Oct 26 08:08:00 GMT 2004
Billinghurst, David (CALCRTS) wrote:
>>From: David Billinghurst
>>
>>The following test case is distilled from the LAPACK timing test cases.
>>These used to work on some previous versions of cygwin/g77, but now fail.
>
>
> I translated the problem into C using f2c. It becomes:
>
> $ cat labugc.c
> int main() {
> static float a[39*1024*1024];
> }
>
> $ gcc -O0 -o labugc.exe labugc.c
> $ ./labugc
> C:\cygwin\usr\people\billingd\labugc.exe (3372): *** MapViewOfFileEx(0x728, in_h 0x728) failed, Win32 error 6
>
>
> Aha, I says. Looks like stack overflow. Google pointed me to an work around
> gcc -Wl,--stack,200000000 -O0 -o labugc.exe labugc.c
>
> David
Interesting, it works without special flags when using gcc-3.4.1.
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list