Assembly language output in C ++ compiler

Will the C ++ compiler compile machine code through assembly language code (i.e., the C ++ compiler first converts C ++ code to assembly language code and then uses the assembler language compiler to convert it to machine code) for reference or debugging?

+3
source share
2 answers

This is not necessary, but in most cases it is done, since the same assembler (program) can be used to output the C / C ++ / any-to-assembler compiler.

g ++, for example, first generates assembler code (you can see the generated assembler with a switch -S).
MSVC does this too ( /FAs).

+6
source

, C. , , , -. , , .

, . , . .

+2

All Articles