delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/24/03:03:10

From: Neil & Joey Obremski <obremski AT nwrain DOT com>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: use memory more than 1MB
Date: Thu, 22 Jan 1998 20:44:04 -0800
Organization: CyCLONE7 Design
Lines: 21
Message-ID: <34C82014.DADFBAFC@nwrain.com>
References: <01bd26e6$b95daea0$0100007f AT localhost>
Reply-To: obremski AT nwrain DOT com
NNTP-Posting-Host: 29220 AT 205 DOT 134 DOT 220 DOT 119
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Try dynamically allocating the array...

char *array = new char [1024000];

VAMPYR wrote:
> 
> How to make DJGPP use memory more than 1MB(or more)?
> 
> This is my test file:
> ===========================
> void main()
> {
>   char array[1024000];
> }
> ===========================
> I compiled with "gcc test.c -o test.exe" , but it appears error!
> How should I do?

-- 
Neil C. Obremski / Ashrak DeadEye -          nobremski AT hotmail DOT com
.G  I  B  D  O  N.   .M  O  O  N. - http://www.nwrain.com/~deadeye

- Raw text -


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