Mail Archives: djgpp/1996/05/30/13:09:29
In article <31AAA608 DOT 32 AT lysator DOT liu DOT se>, alla AT lysator DOT liu DOT se says...
>
>Today i downloaded the pentium gcc 2.7.2
>patchlevel 19 and succesfully compiled it.
>But When i compiled a program (begining of a
>vector graphics engine) and compiled it with
>-mpentium -O6 it actually ran slower than with
>-m486 -O2.
>
>I don't know why. have anyone tried this with other
>results?
>
>I have a pentium overdrive 83Mhz, isn't it exactly like
>a pentium?
Unfortunatly-No. I am also running a 83Mhz Pentium OD, and depending on the
application, it can be almost as fast as a Pentium 75, or about as fast as a
486 DX4/80. The reason why this is so is that a REAL Pentium has a 64 bit bus
to memory, but the OD has a 32 bit bus (your 486 motherboard would have it no
other way!) So when you compile for a Pentium, the compiler is assuming the
cpu will fetch 64 bits per clock cycle, when in fact the OD will take 2 clock
cycles to fetch 64 bits.
>The program i ran might not be good for comparison, i'll
>try some other program tomorrow. Gotta sleep now.
>
>/Alexander Larsson
Good luck
- Raw text -