Mail Archives: djgpp/1996/07/30/02:12:24
On Fri, 26 Jul 1996, John Joseph Newbigin wrote:
> On 22 Jul 1996, Mr. Eric Domazlicky wrote:
> > char array[64000];
> >
> > main() {;}
> >
> > seems to make the exe size 64000 bytes longer. I could be wrong but
> > this seems to the case. The solution to this is of course to allocate
> > the array dynamically by using malloc() or new calls.
This is indeed so in DJGPP, but only in C++ programs. See section 8.14
of the DJGPP FAQ list (v2/faq201b.zip from the same place you get DJGPP)
for details, including a way to avoid such a bloat.
- Raw text -