This is the mail archive of the
mailing list for the GCC project.
Re: Performance of Integer Multiplication on PIII
- To: "Kevin Atkinson" <kevin at atkinson dot dhs dot org>, <gcc at gcc dot gnu dot org>
- Subject: Re: Performance of Integer Multiplication on PIII
- From: "Tim Prince" <tprince at computer dot org>
- Date: Fri, 2 Nov 2001 14:14:47 -0800
- References: <Pine.LNX.4.33L2.email@example.com>
I am confused myself as to which architecture is meant by -march=i686,
but I didn't think it was P-III. I thought -march=pentiumpro was the one
for P-II/P-III. However, wouldn't many people wonder whether you mean P4
when you talk about "faster Pentiums?" Some of us would not go out of our
way to slow down the P4 by asking for imul on code meant to run on a
variety of CPU's, although some would like to have -Os favor the use of
imul. It might be interesting to have a separate table of the penalties
used in each version of gcc for each architecture selection, rather than
having to peruse source.
----- Original Message -----
From: "Kevin Atkinson" <firstname.lastname@example.org>
Sent: Friday, November 02, 2001 10:45 AM
Subject: Performance of Integer Multiplication on PIII
> Trying to teach some my self x86 assembly language as was playing
> with hand coding a functions which encodes an array of integers (with
> limited range) into a number for direct referencing and I discovered
> my hand coded code that does not do any fancy tricks is roughly 50%
> than Gcc code which attempts to avoid imul by using shifts and adds.
> are the results I get.