delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/27/04:34:32

Lines: 29
X-Admin: news AT aol DOT com
From: sterten AT aol DOT com (Sterten)
Newsgroups: comp.os.msdos.djgpp
Date: 27 Aug 2003 07:47:28 GMT
References: <200308262142 DOT h7QLgMN0003239 AT envy DOT delorie DOT com>
Organization: AOL Bertelsmann Online GmbH & Co. KG http://www.germany.aol.com
Subject: Re: allocate memory
Message-ID: <20030827034728.28093.00001085@mb-m29.aol.com>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

>> I want to use big global arrays but don't know how.
>
>In djgpp, big global arrays are no different than little global
>arrays.  Just declare them.
>
>
>	 #include <stdio.h>
>
>	 int foo[100000000];
>
>	 main()
>	 {
>	 }


yes, I should have tried this before asking. Somehow I thought, it wouldn't
work.  Maybe it was some bad experience with local arrays.

But you said,  "in DJGPP..."  , so will  others be able
to compile my program  with other compilers too ?


>
>The only time you have to be careful is when you put them on the stack
>(i.e. local arrays) as there's a limited (but configurable) amount of
>stack space.



- Raw text -


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