Tuesday, March 1, 2011

View your code in assembly

As you know, every line of code you write has to eventually translate into machine code in order for your computer to understand. If you're interested in seeing the assembly language (easier to understand version of machine code) equelant of what you write while debugging (for example)...

  • Exit Delphi
  • Run "Registry Editor" (run regedit.exe or regedit32.exe)
  • Select following registry key:

    HKEY_CURRENT_USER\Software\
    Borland\Delphi\2.0\Debugging


  • Add an item of type "REG_SZ" named "EnableCPU" and set its value to "1" (without the quotes)
  • Exit Registry Editor
  • Restart Delphi and select "View | CPU"
Now when you debug your program, you'll see the assembly instructions in the new "DiassemblyView" window.

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More

 
Design by Kang Iwan K-sev | Thank's for your visit To My Site - Ridwan Mulyana | Cibeureum