Mail Archives: djgpp/1996/04/18/05:21:21
On 17 Apr 1996, GEORGE GAGHON wrote:
> I have a silly question. In the DJGPP compiler there is a 256k stack for
> AUTO arrays and vars. How is a STATIC variable different from a AUTO
> variable, and where is it stored?
They are stored in either the .data or .bss section of the executable,
depending on whether they were or weren't initialized. These sections
aren't limited in size. The fixed stack limit is a mis-feature of the
DPMI specification. All together now: ``Thanks, Bill!''
(Btw, I hope you know that the 256k is only a default that can be
changed; see the FAQ for details.)
- Raw text -