23.03.2013 Views

Quick introduction to reverse engineering for beginners

Quick introduction to reverse engineering for beginners

Quick introduction to reverse engineering for beginners

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

eax=eax+ecx<br />

return eax<br />

... and this is equivalent <strong>to</strong>:<br />

ecx=str;<br />

eax=eos;<br />

eax=eax-ecx;<br />

eax=eax-1;<br />

return eax<br />

Why GCC decided it would be better? I cannot be sure. But I’m assure that both variants are equivalent<br />

in efficiency sense.<br />

34

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!