SI
SI
discoversearch

We've detected that you're using an ad content blocking browser plug-in or feature. Ads provide a critical source of revenue to the continued operation of Silicon Investor.  We ask that you disable ad blocking while on Silicon Investor in the best interests of our community.  If you are not using an ad blocker but are still receiving this message, make sure your browser's tracking protection is set to the 'standard' level.
Technology Stocks : Intel Corporation (INTC) -- Ignore unavailable to you. Want to Upgrade?


To: Joe NYC who wrote (151245)12/5/2001 7:06:53 PM
From: Tenchusatsu  Read Replies (1) | Respond to of 186894
 
Joe, <I don't see any pipeline flushes in the code>

Every mispredicted branch results in a pipeline flush. A huge 'case' statement where the switch is based on a random number is guaranteed to have at least one mispredicted branch per pass-through, no matter what method the compiler comes up with.

<since the time is far outweighed by the time it takes to load the case statement.>

Not in this case. In Kap's program, the code executed between two successive pipeline flushes is pretty small. For the P4, more time is spent waiting for this code to make it through the pipeline than actually executing this code.

Tenchusatsu