Possible Duplicate:
How to generate assembly code from C++ source in Visual Studio 2010
Hello. How can I compile C++ code to asm in Visual Studio?
In gcc I just add one parampeter: -s
It depends on the compiler. There are no real rules regarding what C++ compiles into, except at some point it should be able run on a computer. Most compilers have a switch to compile to assembly.
asm, add the other file to the project by choosing "Add Files to Project" from the Project menu, or choose "Add Files" when right-clicking in the project window. There's no need to do anything to the linker script. Whether your main code (presumably in main. asm) is able to call the functions defined in func.
Looks like /FAs
is the command-line argument. There is also a setting in the GUI: http://codegem.org/2008/10/generate-assembly-from-c-code-in-visual-studio
find project in solution explorer
right click properties
c/c++
output files
assembler output
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With