Malloc array size limit (2)
Fabrizio Impagnatiello
f.impagnatiello@roma.alespazio.it
Tue Mar 4 20:04:00 GMT 2003
Again on same issue.
if I compile the following source with -mno-cygwin option, the EXE code
allocating up to 1 GByte runs good.
#define Meg 1078516
int a[220*Meg];
int main(int *argc, char **argv)
{
int i;
for (i=0; i<220*Meg; i++) {
a[i] = 102 + i;
}
printf("A[10000]=%d\n",a[10000]);
return 0;
}
If the option is removed, the cygwin1.dll fails.
Fabrizio Impagnatiello
Alenia Spazio S.p.A.
Rome - Italy
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
More information about the Cygwin
mailing list