delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/02/23/03:24:07

From: "Anthony.Appleyard" <MCLSSAA2 AT fs2 DOT mt DOT umist DOT ac DOT uk>
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>

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!?

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019