Date: Sun, 8 Aug 1999 14:00:27 +0300 (IDT) From: Eli Zaretskii X-Sender: eliz AT is To: Endlisnis cc: djgpp AT delorie DOT com Subject: Re: A bug In-Reply-To: <37ACCB8F.30CF0863@unb.ca> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Reply-To: djgpp AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk On Sat, 7 Aug 1999, Endlisnis wrote: > Well, I can't seem to recreate it, so it was probably my > imagination, but I did notice that static array values are loaded > from the executable, which makes this program over 40Megs as an > executable: > > ------------------ > #include > int a[10000000]; > > int main(int argc, char *argv[]) > { > printf("size = %d", sizeof(a)); > return 0; > } You probably compiled this as a C++ program, because C programs don't have this misfeature. See section 8.12 of the FAQ for a work-around.