From: "Anthony.Appleyard" Organization: Materials Science Centre To: djgpp AT delorie DOT com Date: Mon, 23 Feb 1998 08:22:22 GMT Subject: compiling big arrays (was: Re: C++ Error) Reply-to: Anthony DOT Appleyard AT umist DOT ac DOT uk Message-ID: <1AFFFCC326A@fs2.mt.umist.ac.uk> Precedence: bulk BlueShade wrote: > For some bizarre reason, when I compile programs under gcc using the C++ > features, they don't work. More specifically, when I declare any size of an > array, the executable becomes HUGE. I had a program that used an int array > of 800 by 800, and compiled it in C. The executable size was 20K. I compiled > the same program under C++ and it was over 2 megs! If anyone can help, I'd > appreciate it. Thanks. I have had the same nuisance. If men can send space probes all over the Solar System, why can't men find some other way of representing 4*800*800 = 2560000 successive zero bytes in an .exe file than by writing them all out at length!?