Thread: Go to disassembly

  1. #1
    Registered User
    Join Date
    Oct 2008
    Posts
    75

    Go to disassembly

    Hi,

    Today I discovered while debugging an option: Go to disassembly.

    Then I get a new tab in visual studio, this is an excerpt:
    Code:
    7C816FCC  push        0FFFFFFFEh 
    7C816FCE  call        dword ptr ds:[7C8013A0h] 
    7C816FD4  call        dword ptr [ebp+8] 
    7C816FD7  push        eax  
    7C816FD8  call        7C80C058
    This looks like assembly language.

    Is it assembly? How and why would I use it when writing my C code.

    Thanks.

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    That is indeed assembler code.

    It is pretty useless for writing C code, it is more for debugging when you want to see what the compiler actually did with your code - or when you have no source code and still need to debug something. In particular, debugging code that has been optimized can actually be EASIER than using source code, because the code gets so mangled in the optimization stage (such as assignments of variables gets moved around, if/else statements re-ordered, etc).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. gcc disassembly
    By herWter in forum Tech Board
    Replies: 13
    Last Post: 06-29-2009, 06:33 AM
  2. disassembly
    By sroshan in forum C++ Programming
    Replies: 1
    Last Post: 11-07-2007, 10:04 AM
  3. Visual C++ .NET Disassembly Window
    By kuphryn in forum Windows Programming
    Replies: 1
    Last Post: 03-15-2004, 02:15 AM
  4. Floppy boot sector disassembly
    By RobR in forum A Brief History of Cprogramming.com
    Replies: 3
    Last Post: 03-05-2002, 04:08 AM