This is the mail archive of the cygwin@cygwin.com 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]

Malloc array size limit (2)


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/


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