flat assembler
Message board for the users of flat assembler.

Index > Heap > Which one is faster

Author
Thread Post new topic Reply to topic
typedef



Joined: 25 Jul 2010
Posts: 2913
Location: 0x77760000
typedef
For those of you that have the speed measuring tools.

Code:
MOVZX EAX, byte [$ABCDEF09]
    


or

Code:
XOR EAX, EAX 
MOV AL, byte[$ABCDEF09]
    
Post 09 Aug 2012, 22:33
View user's profile Send private message Reply with quote
revolution
When all else fails, read the source


Joined: 24 Aug 2004
Posts: 17279
Location: In your JS exploiting you and your system
revolution
We don't know which is faster. And we can't ever know. Different CPUs and surrounding code will affect the outcome.

These types of questions about speed comparisons for single lines of code can not be answered in the general case.
Post 09 Aug 2012, 22:47
View user's profile Send private message Visit poster's website Reply with quote
mindcooler



Joined: 01 Dec 2009
Posts: 423
Location: Västerås, Sweden
mindcooler
Would bet on the first, no dependencies.
Post 09 Aug 2012, 22:49
View user's profile Send private message Visit poster's website MSN Messenger ICQ Number Reply with quote
Display posts from previous:
Post new topic Reply to topic

Jump to:  


< Last Thread | Next Thread >
Forum Rules:
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Copyright © 1999-2020, Tomasz Grysztar.

Powered by rwasa.