Mr. Boy
Mr. Boy

Reputation: 63778

Understanding VC++ ASM generation

I've got as far as telling VC++ to generate ASM files during compilation, which I never really used before. But it seems quite limited, like they are just extra files thrown out during the compilation. I'd thought maybe the ASM/C++ code might be linked, so I can jump from C++ directly to the generated ASM code? Or could set breakpoints in the ASM code? Is this possible and I don't know the tools, or is ASM generation for off-line analysis?

Upvotes: 1

Views: 336

Answers (1)

Jerry Coffin
Jerry Coffin

Reputation: 490348

The assembly language file produced by the compiler is mostly for off-line analysis. If you want to do things like setting a breakpoint in the generated assembly code, you can do that though. When you have the appropriate source file open, right-click and select "Go To disassembly". That will show you the assembly language code with the source statements interleaved as comments (about like the file it generates separately). You can then set breakpoints on individual assembly language statements that were generated from any particular source statement.

Upvotes: 2

Related Questions