From: Andy Glew <glew@cs.wisc.edu>
To: Terje Mathisen <Terje.Mathisen@hda.hydro.com>
Subject: Re: [++] x86 FCOS (Was: Re: gcc vs Dec Unix c)
Date: 1998/01/13 [thread overview]
Message-ID: <34BC41F9.1EF2A296@cs.wisc.edu> (raw)
In-Reply-To: 34BBB772.16@hda.hydro.com
> On a PPro, using call/ret in a simple loop like the one aboe, wouldn't
> really matter, since (allmost?) all fp operations allow the integer ops
> to run simultaneously, so for the code above, the less than 10 cycles
> used for a subroutine call would still be completely hidden by the FCOS
> execution time.
Sorry: the PPro and Pentium II allow FADD, FMUL, FDIV, FSQRT to run
simultaneously with integer operations, since these are done in hardware,
i.e. via dedicated function units and pipelines, with special sequencers
and state machines for FDIV and FSQRT.
However, the transcendentals are done in long microcode sequences,
that essentially take over the entire micromachine. Thus, except for overlap
at the beginning and end, the transcendentals are not done simultaneously with integer
operations. (Except for overlap with already started long lasting operations
like cache misses, divides, etc. - the pipeline isn't flushed (unless the microcode has
a branch misprediction).)
If transcendentals were considered more important, they could be done in hardware,
with dedicated sequencers (probably sharing access to the multiplier and divider logic,
although that shared access would be painful).
There are, of course, hardware assists to make the microcode run faster.
next prev parent reply other threads:[~1998-01-13 5:00 UTC|newest]
Thread overview: 30+ messages / expand[flat|nested] mbox.gz Atom feed top
1998-01-08 5:00 gcc vs Dec Unix c fonte
1998-01-09 5:00 ` Jaap Schellekens
1998-01-09 5:00 ` cekim
1998-01-09 5:00 ` Peter Mardahl
1998-01-09 5:00 ` Craig Burley
1998-01-10 5:00 ` cekim
1998-01-10 5:00 ` Craig Burley
1998-01-13 5:00 ` cekim
1998-01-13 5:00 ` Yan-Song Chen
1998-01-13 5:00 ` Greg Lindahl
1998-01-15 5:00 ` Lupo LeBoucher
1998-01-15 5:00 ` Greg Lindahl
1998-01-13 5:00 ` Rob Komar
1998-01-13 5:00 ` Craig Burley
1998-01-13 5:00 ` James Van Buskirk
1998-01-14 5:00 ` brianh
1998-01-14 5:00 ` James Van Buskirk
1998-01-13 5:00 ` [++] x86 FCOS (Was: Re: gcc vs Dec Unix c) Terje Mathisen
1998-01-13 5:00 ` Andy Glew [this message]
1998-01-14 5:00 ` Terje Mathisen
1998-01-14 5:00 ` gcc vs Dec Unix c bmeyer
1998-01-15 5:00 ` cekim
1998-01-14 5:00 ` Donald K.Sinclair
1998-01-14 5:00 ` Rob Komar
1998-01-16 5:00 ` Torbjorn Lindgren
1998-01-17 5:00 ` Rob Komar
1998-01-14 5:00 ` cekim
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
1998-01-09 5:00 ` Toon Moene
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox