Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.

  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 8. Reconstructing a Program with... > Example of Disassembly Output: Optim...

8.6. Example of Disassembly Output: Optimized Program

Fully optimized program from Release project folder contains less CPU instructions:

0:000> uf main
PointersAsVariables!main
[c:\wdpf\pointersasvariables\pointersasvariables.cpp @ 5]:
    5 00401000 mov     dword ptr [PointersAsVariables!pa (0040ac60)],
offset PointersAsVariables!a (0040ac68)
    7 0040100a mov     dword ptr [PointersAsVariables!pb (0040ac6c)],
offset PointersAsVariables!b (0040ac64)
    9 00401014 mov     dword ptr [PointersAsVariables!a (0040ac68)],1
   14 0040101e mov     dword ptr [PointersAsVariables!b (0040ac64)],4
   16 00401028 xor     eax,eax
   17 0040102a ret


  

You are currently reading a PREVIEW of this book.

                                                                                                                    

Get instant access to over $1 million worth of books and videos.

  

Start a Free 10-Day Trial


  
  • Safari Books Online
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint