www.delorie.com/archives/browse.cgi   search  
Mail Archives: pgcc/1998/05/25/09:34:06

X-pop3-spooler: POP3MAIL 2.1.0 b 4 980420 -bs-
Delivered-To: pcg AT goof DOT com
Message-Id: <m0yduMu-0001zzC@chkw386.ch.pwr.wroc.pl>
Date: Mon, 25 May 98 10:20
From: strasbur AT chkw386 DOT ch DOT pwr DOT wroc DOT pl (Krzysztof Strasburger)
To: beastium-list AT Desk DOT nl
Subject: Size of the code
Sender: Marc Lehmann <pcg AT goof DOT com>
Status: RO
X-Status: A
Lines: 32

Well, there was a discussion about the size of programs compiled by pgcc
on this list.
I made a little testing on my program and...
gcc 2.7.2.3, -m386 -O2 -malign-jumps=0 -malign-loops=0 -malign-functions=0
-ffast-math
file size: 44672
-fno-strength-reduce added:
file size: 44336
pgcc 19980508, haifa enabled, -mpentium -malign-double -O3 -malign-jumps=0
-malign-loops=0 -malign-functions=0 -fno-inline-functions -ffast-math
file size: 46668
pgcc 19980508, haifa disabled, -mpentium -malign-double -O3 -malign-jumps=0
-malign-loops=0 -malign-functions=0 -fno-inline-functions -ffast-math
file size: 46636
pgcc 19980508, haifa enabled, -mpentium -malign-double -Os -malign-jumps=0
-malign-loops=0 -malign-functions=0 -ffast-math
file size: 46732
pgcc 19980508, haifa disabled, -mpentium -malign-double -Os -malign-jumps=0
-malign-loops=0 -malign-functions=0 -ffast-math
file size: 46700
Old pgcc (made against gcc 2.7.2), -mpentium -O3 -malign-double -malign-jumps=0
-malign-loops=0 -malign-functions=0 -fno-omit-frame-pointer -ffast-math
-fno-inline-functions
file size: 44608
without -malign-double: 44592
The Haifa scheduler gives slightly larger code. I must check the speed
differences. The "-O3 -fno-inline-functions" gives more compact code than -Os.
Sorry guys, but pgcc gives (in)significantly larger code than gcc 2.7.2.3.
Everything has been linked with the same libgcc.a (from gcc 2.7.2.3).
The reason of the code bloat must be in egcs, because the old pgcc gives
smaller programs.
Krzysztof Strasburger

- Raw text -


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