delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/2003/08/26/18:31:29

Date: Tue, 26 Aug 2003 17:42:22 -0400
Message-Id: <200308262142.h7QLgMN0003239@envy.delorie.com>
From: DJ Delorie <dj AT delorie DOT com>
To: djgpp AT delorie DOT com
In-reply-to: <20030826165343.00844.00000685@mb-m02.aol.com> (sterten@aol.com)
Subject: Re: allocate memory
References: <20030826165343 DOT 00844 DOT 00000685 AT mb-m02 DOT aol DOT com>
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp AT delorie DOT com
X-Unsubscribes-To: listserv 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()
	 {
	 }

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