From: Taek-Soo Kim (tkim@uws2.ecs.umass.edu)
Date: 07/05/93


From: tkim@uws2.ecs.umass.edu (Taek-Soo Kim)
Subject: [Q] GCC compiler - floating point operation.
Date: 5 Jul 1993 13:12:22 GMT


Hi,

I just got the linux and X window ported to my PC and has been testing the
running time of PC (486SX25 with 8 MB). I have wrote a simple loop which will
count the number of loops executed in C language. I have two version of it,
one which counts in integer and the other in double.

After the compilation I compared the running time with DECstation 2100.
In case of integer version, PC was about 1.5 times faster but the double
version was about 40 times slower than DECstation 2100. The compile option
I have tried on linux was "-O6 -m486".

Is this the limitation of PC in doing the floating point operation or
am I doing something wrong ?
Please enlighten me.

Thank you.

Taek-Soo Kim.

ps. I would perfer an e-mail reply. (tkim@risky.ecs.umass.edu)