Mail Archives: djgpp/2003/08/27/04:34:32
>> 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 -