delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/03/04/14:59:47

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
X-Accept-Language: de, en
X-Priority: 3 (Normal)
From: "Fabrizio Impagnatiello" <f DOT impagnatiello AT roma DOT alespazio DOT it>
MIME-Version: 1.0
subject: Malloc array size limit (2)
To: cygwin AT cygwin DOT com
Organization:
content-type: text/plain; charset="iso-8859-1"
date: Tue, 04 Mar 2003 20:58:45 +0100
content-transfer-encoding: 7bit
Message-Id: <20030304195846.05EB79FC63@mail.roma.alespazio.it>

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/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019