Re: Some gcc/egcs comparisons

1999-04-07 Thread Jeroen Ruigrok/Asmodai
On 07-Apr-99 John Polstra wrote:
> In article ,
> Jeroen Ruigrok/Asmodai   wrote:
>> 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*
> ...
> 
> File sizes don't mean much.  It would be more interesting to compare
> the outputs of size(1).

As thou wishes:

gcc with -pipe -O2:

[asmo...@daemon] (47) $ ll xfmail 
 760 -r-xr-xr-x  1 bin  bin  - 767720 Jan  1 16:08 xfmail*

[asmo...@daemon] (49) $ size xfmail 
   textdata bss dec hex filename
 711165   53244  149924  914333   df39d xfmail

[asmo...@daemon] (52) $ ll libxforms.so.0 
 512 -rw-r--r--  1 root  wheel  - 513411 Jan  1 16:00 libxforms.so.0

[asmo...@daemon] (53) $ size libxforms.so.0 
   textdata bss dec hex filename
 412781   29556   53092  495429   78f45 libxforms.so.0

Now for egcs with -pipe -Os:

[asmo...@daemon] (30) # ll xfmail 
 808 -r-xr-xr-x  1 bin  bin  - 811812 Apr  7 19:39 xfmail*

[asmo...@daemon] (31) # size xfmail 
   textdata bss dec hex filename
 753039   53616  150596  957251   e9b43 xfmail

[asmo...@daemon] (16) # ll libxforms.so.0 
 512 -rw-r--r--  1 root  wheel  - 513411 Apr  7 19:31 libxforms.so.0

[r...@daemon] (18) # size libxforms.so.0 
   textdata bss dec hex filename
 412781   29556   53092  495429   78f45 libxforms.so.0

---
Jeroen Ruigrok van der Werven  
asmodai(at)wxs.nlThe idea does not replace the work...
Network/Security Specialist  
*BSD: Powered by Knowledge & Know-how 


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



Re: Some gcc/egcs comparisons

1999-04-07 Thread John Polstra
In article ,
Jeroen Ruigrok/Asmodai   wrote:
> 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*
...

File sizes don't mean much.  It would be more interesting to compare
the outputs of size(1).

John
-- 
  John Polstra   j...@polstra.com
  John D. Polstra & Co., Inc.Seattle, Washington USA
  "Self-interest is the aphrodisiac of belief."   -- James V. DeLong


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



Some gcc/egcs comparisons

1999-04-07 Thread Jeroen Ruigrok/Asmodai
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 10
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  
asmodai(at)wxs.nlThe idea does not replace the work...
Network/Security Specialist  
*BSD: Powered by Knowledge & Know-how 


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