tinycc-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] ASM Output?


From: Jeff Schultz
Subject: Re: [Tinycc-devel] ASM Output?
Date: Thu, 18 Nov 2004 01:18:00 +1100

> >     return table[x % 0xfU];

> Probably because gcc is doing a divide here, and tcc is smart enough to do
> a logical and? Also, try doing -O3 on gcc and see what comes up.

It has to do a divide!  x % 15 is not the same as x & 15.  Tcc does
the divide too.

FWIW, I see gcc 3.3.2 -O3 on a K7 as 1.5 times faster than tcc 0.9.22
on this program.


    Jeff Schultz


P.S.  I assume it's a cut down test case, hence the unused extra entry
in the table.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]