Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 07 Apr 1999 19:05:05 +0200 (CEST)
From:      Jeroen Ruigrok/Asmodai <asmodai@wxs.nl>
To:        FreeBSD Current <current@FreeBSD.ORG>
Subject:   Some gcc/egcs comparisons
Message-ID:  <XFMail.990407190505.asmodai@wxs.nl>

next in thread | raw e-mail | index | archive | help
gcc compilation with -pipe -O2:

  96 -rwxr-xr-x  1 root  wheel  -   97379 Mar 14 10:32 coolbrowse*
1064 -rwxr-xr-x  1 root  wheel  - 1076216 Mar 14 10:32 coolbrowse.static*
2064 -rwxr-xr-x  1 root  wheel  - 2104523 Mar 14 10:31 cooledit*
2992 -rwxr-xr-x  1 root  wheel  - 3054807 Mar 14 10:32 cooledit.static*
 408 -rwxr-xr-x  1 root  wheel  -  405283 Mar 14 10:32 coolicon*
1360 -rwxr-xr-x  1 root  wheel  - 1378690 Mar 14 10:32 coolicon.static*
  95 -rwxr-xr-x  1 root  wheel  -   96919 Mar 14 10:32 coolinput*
1064 -rwxr-xr-x  1 root  wheel  - 1075824 Mar 14 10:32 coolinput.static*
 112 -rwxr-xr-x  1 root  wheel  -  104093 Mar 14 10:32 coollistbox*
1064 -rwxr-xr-x  1 root  wheel  - 1081051 Mar 14 10:32 coollistbox.static*
 160 -rwxr-xr-x  1 root  wheel  -  148628 Mar 14 10:31 coolman*
1120 -rwxr-xr-x  1 root  wheel  - 1132445 Mar 14 10:32 coolman.static*
  96 -rwxr-xr-x  1 root  wheel  -   97866 Mar 14 10:32 coolmessage*
1064 -rwxr-xr-x  1 root  wheel  - 1076561 Mar 14 10:32 coolmessage.static*
  95 -rwxr-xr-x  1 root  wheel  -   96808 Mar 14 10:32 coolquery*
1064 -rwxr-xr-x  1 root  wheel  - 1075721 Mar 14 10:32 coolquery.static*

egcs compilation with -pipe -Os:

 112 -rwxr-xr-x  1 root  wheel  -  105524 Apr  7 18:58 coolbrowse*
 880 -rwxr-xr-x  1 root  wheel  -  889540 Apr  7 18:58 coolbrowse.static*
1992 -rwxr-xr-x  1 root  wheel  - 2029127 Apr  7 18:57 cooledit*
2720 -rwxr-xr-x  1 root  wheel  - 2770319 Apr  7 18:57 cooledit.static*
 416 -rwxr-xr-x  1 root  wheel  -  410957 Apr  7 18:58 coolicon*
1160 -rwxr-xr-x  1 root  wheel  - 1177536 Apr  7 18:58 coolicon.static*
 112 -rwxr-xr-x  1 root  wheel  -  105020 Apr  7 18:58 coolinput*
 880 -rwxr-xr-x  1 root  wheel  -  889228 Apr  7 18:58 coolinput.static*
 120 -rwxr-xr-x  1 root  wheel  -  112610 Apr  7 18:58 coollistbox*
 888 -rwxr-xr-x  1 root  wheel  -  894763 Apr  7 18:58 coollistbox.static*
 176 -rwxr-xr-x  1 root  wheel  -  167248 Apr  7 18:57 coolman*
 936 -rwxr-xr-x  1 root  wheel  -  948849 Apr  7 18:58 coolman.static*
 112 -rwxr-xr-x  1 root  wheel  -  106107 Apr  7 18:58 coolmessage*
 880 -rwxr-xr-x  1 root  wheel  -  889977 Apr  7 18:58 coolmessage.static*
 112 -rwxr-xr-x  1 root  wheel  -  104861 Apr  7 18:58 coolquery*
 880 -rwxr-xr-x  1 root  wheel  -  889073 Apr  7 18:58 coolquery.static*

Seems like egcs really makes smaller binaries, except when the binary is
small in itself already. Seems that after the size reaches roughly 100000
bytes that egcs gets really active for optimisations.

Featured program: CoolEdit 3.9.0

I unfortunately forgot to get the size of the static and shared libaries.
Anyone got some details on that front?

---
Jeroen Ruigrok van der Werven     <http://www.freebsdzine.org>; 
asmodai(at)wxs.nl        The idea does not replace the work...
Network/Security Specialist      <http://home.wxs.nl/~asmodai>;
*BSD: Powered by Knowledge & Know-how <http://www.freebsd.org>;


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.990407190505.asmodai>