Multiplication of a block of integers
Frank Klemm
pfk@fuchs.offl.uni-jena.de
Sun Sep 2 08:45:00 GMT 2001
This is a simple function multipliying a block of integers with 5000.
C code needs 6.35 clocks per item
unrolled C code needs 5.4 clocks per item
stupid assembler code needs 4 clocks
unrolled assembler code 2.26 clocks
Because of a factor of 1:2.4 between Assembler and C this may be interesting.
I know this is not a typical application, but it show some weak points.
--
Frank Klemm
More information about the Gcc
mailing list