delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/05/20/11:56:42

Date: Tue, 20 May 1997 08:54:28 -0700 (PDT)
Message-Id: <199705201554.IAA03285@geocities.com>
Mime-Version: 1.0
To: djgpp AT delorie DOT com
From: Guilherme Silveira <thedarkage AT mail DOT geocities DOT com>
Subject: Re: Why does gcc make such big binaries?

The DJGPP compiler (GCC) needs to have some more kbytes on your program;
Remember: If you compile with -s you'll not put the comments int the exe
file (the -s isn't default);

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

- Raw text -


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