delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1999/06/28/13:34:01

From: Darren Noble <darren AT calderathin DOT com>
To: djgpp AT delorie DOT com
Subject: Re: large arrays -- newbie question
Date: Mon, 28 Jun 1999 11:33:46 -0600
X-Mailer: KMail [version 1.0.17]
References: <19990628120046 DOT 27702 DOT 00002114 AT ngol08 DOT aol DOT com>
MIME-Version: 1.0
Message-Id: <99062811352900.00996@dome.calderathin.com>
Reply-To: djgpp AT delorie DOT com

On Mon, 28 Jun 1999, you wrote:
> Hello, I am just starting out in c++, and I have a question about how I would
> go about making a rther large array  (like 3 arrays each of 720*486 bytes, or
> so).  I have heard some compilers have a limit to how big they can normally
> make something, and you have to go about allocating memory for anything larger
> than like 64k.  In DJGPP, would I have to do anything special to make an array
> allong the lines of ...
> 
> char large_ish_matrix [720] [486]
> 
> ?
> 
> Sorry if this is a silly questuion, but I am an extreme newbie to both c++, and
> DJGPP.
> 
> Thanks for you help!

You can have huge arrays in DJ.  You don't hove that stupid 640k barrier.  So
that line would work.  Matter of fact I've made much larger arrys than that in
DJ.

- Raw text -


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