Jim Meyering asked:
> > The compilation of these files with -g -O2 and newer gcc releases takes
> > an awful lot of time (5 minutes or so). Is there some way to make gcc work
> > faster, without decreasing the runtime speed too much?
> 
> Wow.  What version of gcc, and what type of CPU?

CPU: AMD-K7 500 MHz

gcc             time make      time make
version         sha256.o       sha512.o

3.2.2            6.1 sec       68 sec
4.0.4            5.5 sec       27 sec
4.1.2            5.1 sec       14.4 sec
4.2.2            5.2 sec       12.5 sec
4.3-20080215    10.8 sec       20.1 sec

So indeed the problem is indeed not as severe as I remembered, but 20 seconds
of compilation time for a not particularly large file with the newest gcc is
still not nice.

Is there a good workaround?

Bruno



Reply via email to