by "Bartc" <bc@[EMAIL PROTECTED]
>
Apr 25, 2008 at 11:32 AM
"jacob navia" <jacob@[EMAIL PROTECTED]
> wrote in message
news:fusbuo$nbq$1@[EMAIL PROTECTED]
> Bartc wrote:
> OK
>
> 1: I changed the code generator to emit the code as you want
> 2: I wrote this program:
Like I said I couldn't reproduce the difference outside the larger
program.
> I would like to improve the code generated, but I just do not understand
> why you see such a difference.
>
> Which CPU are you using?
> Which OS?
The OS is WinXP. The CPU with the big timing difference is Pentium M
1.1GHz
(a laptop).
But when I tried it on a Pentium 4 2.93Ghz machine, the differences were
minimal; although the new CALL EBX form seemed to be 5% faster than the
old
CALL (EBX) form. And on this machine, on my second test, lccwin was anyway
faster than gcc!
So I wouldn't worry about it too much; I will discover other things I'm
sure
pretty soon. That code on the Pentium M must have been a strange
combination
of different factors.
Maybe best to keep the new code though, if only because that's what gcc
seems to use.
--
Thanks,
Bart