This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

gcc 3.3.1-3 runtime error: static data storage size


I have the following example to propose:
/** aa.c **/
#define NXY 5000
#define NXY 7000
int xy[NXY][NXY];
main(){
printf("ok\n");
}

This will work when NXY=5000, but will generate a SIGSEV exception before reaching the first statement when NXY=7000.

The array in the faulty case is 187MB. The gcc documentation gives 2GB as the limit for having to switch to dynamic allocation. Any fixes? or relevant compiler options possibly available?

Thanks.

Pietro Brandani

Attachment: cygcheck.txt
Description: Text document

Attachment: aa.c
Description: Text document

--
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/

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]