From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <8bfbd390badbb6554d688bc3b9f58479.axp-list@archive.invalid> X-Archive-Original-Message-ID: <9605020839.AA04011@nova.tat.physik.uni-tuebingen.de> Date: Thu, 2 May 1996 12:02:42 +0300 (EET DST) From: Linus Torvalds Subject: Re: ev4sched---here it is In-Reply-To: <9605020839.AA04011@nova.tat.physik.uni-tuebingen.de> > the following example shows that even these 20% are by far not enough: > here are cpu times for this fortran program (~20k lines) using f2c to > convert it to C (~40k lines) and then using either gcc-2.7.1 or the > DEC cc from DEC UNIX 3.2 or similar (I have to check this again). > both (static) binaries are then run on my XL266 on Linux. > > gcc -O3 1556.99 secs > cc -O3 824.56 secs > > this almost a factor of TWO:-( Have you tried to profile this? The difference might be partly in the libraries, so if the "cc" version is also using DEC libraries (likely), then it might be due to that. Admittedly gcc is pretty bad at some things, and floating point is not the strongest point of gcc, so it _may_ be due to just compilers.. Linus