Thread View: borland.public.delphi.basm
4 messages
4 total messages
Started by chris jones
Mon, 09 Sep 2002 22:58
why doesnt Delhp use cmov?
Author: chris jones
Date: Mon, 09 Sep 2002 22:58
Date: Mon, 09 Sep 2002 22:58
17 lines
1176 bytes
1176 bytes
Ive been checking the code generated by the compiler and if x1 < clip.left then x1 := clip.left; compiles to mov ecx,[eax+$20] comp edx,ecx jnl +$03 mov [eax+$30],ecx Is there anyway to get it to use cmov or is there some reason for it not to use it? thanks, chris
Re: why doesnt Delhp use cmov?
Author: Torjei Kvinen
Date: Tue, 10 Sep 2002 00:18
Date: Tue, 10 Sep 2002 00:18
12 lines
1221 bytes
1221 bytes
"chris jones" <flak@clara.co.uk> wrote in message > Is there anyway to get it to use cmov or is there some reason for it not > to use it? The cmov instruction was introduced with pentium and will not work on 386 and 486. -- Regards Torjei Kvinen
Re: why doesnt Delhp use cmov?
Author: chris jones
Date: Tue, 10 Sep 2002 11:39
Date: Tue, 10 Sep 2002 11:39
17 lines
1502 bytes
1502 bytes
"Torjei Kvinen" <torjei@hahaha_bluezone.no> wrote in message news:3d7d3a4b$1@newsgroups.borland.com... > "chris jones" <flak@clara.co.uk> wrote in message > > > Is there anyway to get it to use cmov or is there some reason for it not > > to use it? > > The cmov instruction was introduced with pentium and will not work on 386 > and 486. Would it be worthwile to have a compiler switch to request the use of cmov? I am geusesing it will be significantly faster that branching. thanks, chris
Re: why doesnt Delhp use cmov?
Author: Will DeWitt
Date: Wed, 11 Sep 2002 10:20
Date: Wed, 11 Sep 2002 10:20
6 lines
1180 bytes
1180 bytes
As a side note, I opened up a Quality Central report on this very subject of the compiler having more advanced CPU targets. Look up entry #2323 in the Delphi project and vote/rate as appropriate. Post comments to it if you'd like to see some things not covered by the description. =) Will
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads