Multiplications on Pentium 4

Torbjorn Granlund tege@swox.com
Mon Sep 10 02:11:00 GMT 2001


Frank Klemm <pfk@fuchs.offl.uni-jena.de> writes:

  The Pentim 4 is so different from all other CPUs so I must write a special
  Code Choice Generator. Some Examples:

I don't know what a Code Choice Generator is, but I know that
multiply-by-constant code generation is controlled by the *COSTS
macros.  If you set these up properly for Pentium 4, you should get
code sequences that use fewer shifts and more adds.

(It isn't going to become perfect since this code understands nothing
about scheduling.)

-- 
Torbjörn



More information about the Gcc mailing list