How do I compile a C/C++ program through windows command prompt?
问题 Im new to the C/C++ programming language an so far have used the Code::blocks program for writing and compiling programs. However I need to know how to compile a program via windows command prompt as I need to access the assembly code created. My compilers are mingw32-gcc.exe, mingw32-g++.exe 回答1: Please read Compile Programs with MinGW -- A Guide for New Users. To make gcc produce assembler code, use -S option: -S Stop after the stage of compilation proper; do not assemble. The output is in