On Thu, Feb 07, 2002 at 09:17:31AM +0100, Lars Gullik Bjønnes wrote:
> "Kayvan A. Sylvan" <[EMAIL PROTECTED]> writes:
> 
> | This list is the same set of files compiled with gcc-2.95.3.
> >
> | I compiled gcc-3.0.3 with CFLAGS=-O2. Did I do something wrong in
> | the compile? (I used "make CFLAGS=-O2 bootstrap" first)
> >
> | The differences in the executable sizes are stunning!
> 
> Use size to compare exe sizes.

That gives me this info (new/*.exe compiled by gcc-3.0.3):

[Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] size *.exe new/*.exe
   text    data     bss     dec     hex filename
  68096    3072     988   72156   119dc 0-0.exe
  68096    3072     988   72156   119dc 0-2.exe
  68096    3072     988   72156   119dc 0-3.exe
  68096    3072     988   72156   119dc 0-4.exe
  68096    3072     988   72156   119dc 0-6.exe
  82944    3584    1132   87660   1566c 1-0.exe
  90624    3584    1132   95340   1746c 1-6.exe
  82432    3584    1132   87148   1546c 2-0.exe
  82432    3584    1132   87148   1546c 2-1.exe
  82432    3584    1132   87148   1546c 2-2.exe
  82432    3584    1132   87148   1546c 2-3.exe
  82944    3584    1132   87660   1566c 2-4.exe
  90112    3584    1132   94828   1726c 2-5.exe
  68096    3072     988   72156   119dc 2-9.exe
  97792    3584    1132  102508   1906c 3-0.exe
 157696    6656    3768  168120   290b8 new/0-0.exe
 157696    6656    3768  168120   290b8 new/0-2.exe
 157696    6656    3768  168120   290b8 new/0-3.exe
 157696    6656    3768  168120   290b8 new/0-4.exe
 157696    6656    3768  168120   290b8 new/0-6.exe
 163328    6656    3768  173752   2a6b8 new/1-0.exe
 160256    6656    3768  170680   29ab8 new/1-6.exe
 162304    6656    3768  172728   2a2b8 new/2-0.exe
 162304    6656    3768  172728   2a2b8 new/2-1.exe
 162304    6656    3768  172728   2a2b8 new/2-2.exe
 162304    6656    3768  172728   2a2b8 new/2-3.exe
 163328    6656    3768  173752   2a6b8 new/2-4.exe
 158720    6656    3768  169144   294b8 new/2-5.exe
 159232    6656    3768  169656   296b8 new/2-9.exe
 169472    6656    3768  179896   2beb8 new/3-0.exe

> I guess you did not strip the files before comparing?

Correct. No strip of either set of binaries.

After running strip, here is the info:

[Kayvan@GORILLA c:/cygwin/home/Kayvan/src/CC/src] size *.exe new/*.exe
   text    data     bss     dec     hex filename
  68096    3072     988   72156   119dc 0-0.exe
  68096    3072     988   72156   119dc 0-2.exe
  68096    3072     988   72156   119dc 0-3.exe
  68096    3072     988   72156   119dc 0-4.exe
  68096    3072     988   72156   119dc 0-6.exe
  82944    3584    1132   87660   1566c 1-0.exe
  90624    3584    1132   95340   1746c 1-6.exe
  82432    3584    1132   87148   1546c 2-0.exe
  82432    3584    1132   87148   1546c 2-1.exe
  82432    3584    1132   87148   1546c 2-2.exe
  82432    3584    1132   87148   1546c 2-3.exe
  82944    3584    1132   87660   1566c 2-4.exe
  90112    3584    1132   94828   1726c 2-5.exe
  68096    3072     988   72156   119dc 2-9.exe
  97792    3584    1132  102508   1906c 3-0.exe
 157696    6656    3768  168120   290b8 new/0-0.exe
 157696    6656    3768  168120   290b8 new/0-2.exe
 157696    6656    3768  168120   290b8 new/0-3.exe
 157696    6656    3768  168120   290b8 new/0-4.exe
 157696    6656    3768  168120   290b8 new/0-6.exe
 163328    6656    3768  173752   2a6b8 new/1-0.exe
 160256    6656    3768  170680   29ab8 new/1-6.exe
 162304    6656    3768  172728   2a2b8 new/2-0.exe
 162304    6656    3768  172728   2a2b8 new/2-1.exe
 162304    6656    3768  172728   2a2b8 new/2-2.exe
 162304    6656    3768  172728   2a2b8 new/2-3.exe
 163328    6656    3768  173752   2a6b8 new/2-4.exe
 158720    6656    3768  169144   294b8 new/2-5.exe
 159232    6656    3768  169656   296b8 new/2-9.exe
 169472    6656    3768  179896   2beb8 new/3-0.exe

-- 
Kayvan A. Sylvan          | Proud husband of       | Father to my kids:
Sylvan Associates, Inc.   | Laura Isabella Sylvan  | Katherine Yelena (8/8/89)
http://sylvan.com/~kayvan | "crown of her husband" | Robin Gregory (2/28/92)

Attachment: msg32789/pgp00000.pgp
Description: PGP signature

Reply via email to