Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 4 Jan 1999 03:45:38 +1030 (CST)
From:      Kris Kennaway <kkennawa@physics.adelaide.edu.au>
To:        Wiliam Woods <wwoods@cybcon.com>
Cc:        FBSD_QUESTIONS <questions@FreeBSD.ORG>, FBSD_CURRENT <freebsd-current@FreeBSD.ORG>
Subject:   Re: pgcc-1.1.1 
Message-ID:  <Pine.OSF.4.05.9901040327240.18060-100000@bragg>
In-Reply-To: <005501be3737$d091d620$f301040a@c063.beaverton.stream.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Sun, 3 Jan 1999, Wiliam Woods wrote:

> Anyone here useing pgcc-1.1.1 as their compiler of choice, to replace gcc? I
> have been debating playing with this on my "spare" system.
> Any reports from someone useing this, good or bad?

I use egcs-1.1.1 (on which pgcc is based) to compile most of my stuff here,
including the world. There are a few small "gotchas", namely bits of the
system which will not compile (for me):

lib/libc lib/libc_r lib/libstand games/rogue libexec/rtld-elf games/bs
gnu/lib/libg++ gnu/lib/libstdc++ gnu/usr.bin/groff sys/boot/ sys/modules

I have a small script which recompiles these using CC and CFLAGS and the
system gcc, and then just do my usual make depend/make all -j4 cycle to do the
rest. The kernel is also not compilable with egcs due to FreeBSD-specific
extensions in our gcc compiler.

There are the odd one or two ports I've come across which can't be compiled
using egcs, but for the most part it works very nicely. A quick-n-dirty
benchmark:

# dd if=/dev/random of=/usr2/bigfile bs=1024k count=30
# cp /usr2/bigfile /usr2/bigfile2
# /usr/bin/time gzip-486 -9 /usr2/bigfile
       26.06 real        20.46 user         1.17 sys
# /usr/bin/time gzip-pent -9 /usr2/bigfile2
       23.12 real        18.58 user         1.20 sys

i.e. a speedup of about 12%

gzip-486 was compiled with the stock gcc, -O2 -mno-486
gzip-pentium was compiled with egcs-1.1.1 from the ports collection, -O2
-mpentium -march-pentium

Incidentally, the dd command spammed the heck out of my machine..good DoS,
anyone? :)

Kris


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

-----
(ASP) Microsoft Corporation (MSFT) announced today that the release of its 
productivity suite, Office 2000, will be delayed until the first quarter
of 1901.


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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?Pine.OSF.4.05.9901040327240.18060-100000>