Mail Archives: djgpp/2003/12/17/06:32:45
> 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.
--------------------------------
there are two disadvantages though:
1. it takes longer to compile such programs
2. the executable is very big.
I think, it should be possible to do it without these disadvantages ?!
- Raw text -