Mail Archives: djgpp/1998/01/23/04:00:24
VAMPYR wrote:
>
> How to make DJGPP use memory more than 1MB(or more)?
>
> This is my test file:
> ===========================
> void main()
FYI, it is supposed to be int main(void)
> {
> char array[1024000];
> }
the default stack size is 256K. if you allocate the array globally
instead of locally, or if you use malloc, you won't have a problem:
char *array = malloc[32*1024*1024];
> ===========================
> I compiled with "gcc test.c -o test.exe" , but it appears error!
> How should I do?
--
----------------------------------------------------------------------
A. Sinan Unur
Department of Policy Analysis and Management, College of Human Ecology,
Cornell University, Ithaca, NY 14853, USA
mailto:sinan DOT unur AT cornell DOT edu
http://www.people.cornell.edu/pages/asu1/
- Raw text -