What's the best way to view accurate disassembly in VC++ 2010 while in Win32 Release mode?

后端 未结 4 1481
予麋鹿
予麋鹿 2021-01-16 03:42

I am writing assembly-level optimized code, and I need to make sure that the C++ compiler is working with it correctly in Release-Mode.

I used to be able to get Rele

4条回答
  •  -上瘾入骨i
    2021-01-16 04:34

    If you're writing straight assembly, you can just use INT 3. When you place a breakpoint using the debugger, it actually changes the code to that (0xCC in binary) so the debugger will get called when it's executed.

    You can also call one of the functions that do that for you like zr suggested. The Windows one is DbgBreakPoint(). If you disassemble it, you could easily see it's nothing but INT 3.

提交回复
热议问题