GSM Shop GSM Shop
GSM-Forum  

Welcome to the GSM-Forum forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features.
Only registered members may post questions, contact other members or search our database of over 8 million posts.

Registration is fast, simple and absolutely free so please - Click to REGISTER!

If you have any problems with the registration process or your account login, please contact contact us .

Go Back   GSM-Forum > Other Gsm/Mobile Related Forums > GSM Programming & Reverse Engineering


GSM Programming & Reverse Engineering Here you can post all Kind of GSM Programming and Reverse Engineering tools and Secrets.

Reply
 
LinkBack Thread Tools Display Modes
Old 06-29-2012, 07:46   #1 (permalink)
Freak Poster
 
Y.P.Y's Avatar
 
Join Date: Apr 2009
Location: QQ:2557307931
Posts: 132
Member: 1010502
Status: Offline
Sonork: whats this?!
Thanks Meter: 316
Question Any cause to do a XOR EAX, EAX?


Why does Microsoft Visual C++ in some cases put it in codes?

Is it more efficient that mov eax, 0 ?



012B1002 in al,dx
012B1003 push ecx
int i = 5;
012B1004 mov dword ptr [i],5
return 0;
012B100B xor eax,eax



BR.
  Reply With Quote
Old 06-29-2012, 13:18   #2 (permalink)
Junior Member
 
Join Date: Nov 2011
Location: The cache
Posts: 21
Member: 1698024
Status: Offline
Thanks Meter: 5
XOR EAX,EAX is only 2 bytes in length, whereas MOV EAX,0 is 3 to 6 bytes. The xor one fits better in cache.
  Reply With Quote
Old 06-30-2012, 23:07   #3 (permalink)
No Life Poster
 
oOXTCOo's Avatar
 
Join Date: Dec 2000
Location: J.A.U - Just Another Unlocker
Age: 43
Posts: 3,498
Member: 2878
Status: Offline
Thanks Meter: 9,123
and xor is faster! i had same question to sergey some time back...
  Reply With Quote
Reply

Bookmarks


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
news headlines to gsm phone mos Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 7 05-22-2016 11:42
How can I do a Welcome note for my 6110 a dosn't have any one ? Viper Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 06-27-2015 11:57
How to add a language in 51xx/61xx tati Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 05-21-2013 19:20
How to upload a new firmware... Brand Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 8 06-08-2012 18:29
Copy from one 6110 to another Leif Nielsen Nokia Legacy Phones ( DCT-1 ,2 ,3 ,L ) 1 06-10-1999 22:36

 



All times are GMT +1. The time now is 21:54.



Powered by Searchlight © 2024 Axivo Inc.
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
- GSM Hosting Ltd. - 1999-2023 -
Page generated in 0.13323 seconds with 9 queries

SEO by vBSEO