From Schmid.wiki
Jump to: navigation, search
Terminator code

References

Topics

Vim Disassembly Tip

Here's how to quickly see the assembler output of a C++ program in Vim

vim something.cpp

:set makeprg=g++\ -mpreferred-stack-boundary=2\ -S\ %
 │
 └─ Define make program (preferred-stack-boundary option disables
    stack alignment boilerplate code in assembler output)

:make
:vnew something.s
:set autoread

From this point on, you can see the assembler equivalent of your C++ code by running :make.

You can mark places in the code by writing something like this in your C++ code:

asm("MarkedPlace:");

Pages in category "Assembler"

The following 7 pages are in this category, out of 7 total.