Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Compilers LCC > Re: Code genera...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 5 of 5 Topic 1041 of 1070
Post > Topic >>

Re: Code generator detail

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
 




 5 Posts in Topic:
Code generator detail
"Bartc" <bc@  2008-04-25 01:00:44 
Re: Code generator detail
jacob navia <jacob@[EM  2008-04-25 07:58:08 
Re: Code generator detail
"Bartc" <bc@  2008-04-25 09:48:17 
Re: Code generator detail
jacob navia <jacob@[EM  2008-04-25 12:31:47 
Re: Code generator detail
"Bartc" <bc@  2008-04-25 11:32:17 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Tue Oct 7 12:27:10 CDT 2008.