In which scenario it is useful to use Disassembly language while debugging

前端 未结 4 681
无人共我
无人共我 2021-01-14 21:28

I have following basic questions :

  • When we should involve disassembly in debugging

  • How to interpret disassembly, For example be

4条回答
  •  一整个雨季
    2021-01-14 21:52

    When you should involve disassembly: When you exactly want to know what the CPU is doing when it's executing your program, or when you don't have the source code in whatever higher level language the program was written in (C++ in your case).

    How to interpret assembly code: Learn assembly language. You can find an exhaustive reference on Intel x86 CPU instructions in Intel's processor manuals.

    The piece of code that you posted prepares arguments for a function call (by getting and pushing some values on the stack and putting a value in the register eax), and then calls the function getRequiredFields.

提交回复
热议问题