Care Unlock  
Your online unlock store
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. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

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: 133
Member: 1010502
Status: Offline
Sonork: whats this?!
Thanks: 133
Thanked 315 Times in 111 Posts
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: 2
Thanked 5 Times in 3 Posts
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)
Product Manager
 
oOXTCOo's Avatar
 
Join Date: Dec 2000
Location: J.A.U - Just Another Unlocker
Age: 33
Posts: 3,380
Member: 2878
Status: Offline
Thanks: 1,587
Thanked 8,998 Times in 1,521 Posts
and xor is faster! i had same question to sergey some time back...
  Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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
How to add a language in 51xx/61xx tati Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 8 05-21-2013 19:20
How to upload a new firmware... Brand Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 28 08-30-2012 03:40
How can I do a Welcome note for my 6110 a dosn't have any one ? Viper Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 7 07-18-2012 07:57
news headlines to gsm phone mos Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 6 12-18-2011 11:00
Copy from one 6110 to another Leif Nielsen Nokia Legacy Phones ( DCT-1 , DCT-2 , DCT-3 , DCT-L ) 1 06-10-1999 22:36


All times are GMT +1. The time now is 19:01.



Powered by Searchlight © 2013 Axivo Inc.
- GSM Hosting Ltd. - 1999-2013 -
Page generated in 0.35000 seconds with 11 queries

SEO by vBSEO