Re: benchmark

Justin Guyett <[email protected]>
Newsgroups gmane.mail.spam.hashcash
Message-ID <[email protected]>
On 2004-09-15T02:27:44-0400, Atom 'Smasher' wrote:
> On Wed, 15 Sep 2004, Justin Guyett wrote:
> 
> > I get that, too, when I let gentoo compile hashcash.  It ends up
> > building with these flags:
> >
> > -O3 -march=pentium3 -pipe -fomit-frame-pointer -O3    -c
> >
> > it works fine with the default flags for "make x86", namely
> >
> > -DREGEXP_POSIX -O3 -funroll-loops -march=i386 -mcpu=pentium -mmmx
> > -D_REENTRANT -D_THREAD_SAFE -fPIC    -c
> 
> hhmmm... my build is with different flags (on freeBSD)...

It seems that it's -march=pentium3 that's triggering the bug.

Using those exact flags (-march=i386 and -S instead of -c), attachment 1
is the assembly code gcc generates.

Using -march=pentium3 (and leaving everything else the same, including
-mcpu), attachment 2 is the assembly code gcc generates.

.Sb means broken, .Sw means working.

Both were generated with the latest stable gentoo gcc, gcc 3.3.4-r1,
ssp-3.3.2-2, pie-8.7.6.  The source is vanilla 1.08.
fastmint_mmx_standard_1.Sw.bz2 (application/octet-stream, 3.6 KB) - not displayed
fastmint_mmx_standard_1.Sb.bz2 (application/octet-stream, 3.6 KB) - not displayed
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.