Do all C++ compilers generate C code?

前端 未结 5 2260
悲&欢浪女
悲&欢浪女 2020-12-11 04:25

Probably a pretty vague and broad question, but do all C++ compilers compile code into C first before compiling them into machine code?

5条回答
  •  萌比男神i
    2020-12-11 04:47

    Nope. GCC for example goes from C++ -> assembler. You can see this by using the -S option with g++.

    Actually, now that I think about it, I don't think any modern compiler goes to C before ASM.

提交回复
热议问题