From: Richard Collins <rcollins AT hermes DOT otago DOT ac DOT nz> Newsgroups: comp.os.msdos.djgpp Subject: Why does gcc make such big binaries? Date: Sun, 18 May 1997 13:32:53 +1200 Organization: University of Otago, Dunedin, NZ Lines: 24 Message-ID: <Pine.OSF.3.91.970518132348.61A-100000@hermes.otago.ac.nz> NNTP-Posting-Host: hermes.otago.ac.nz Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Precedence: bulk I've just started coding in C with gcc. For my first program I wrote the originsl little program: main() { printf("Hello World\n"); } Which worked well, but I was shocked to see the program was about 80k. So I tried: Main(){} Which compiled to 60k. I tried the equivilent programs in turbo pascal, and got 2.4k and 1.6k respectivly. I'd greatly appreciate if someone would tell me. What is all this code that is being generated and is there any way I can cut it down somehow? Thanks for your time, Richard Collins <rcollins AT hermes DOT otago DOT ac DOT nz>