Does a compiler always produce an assembly code?

后端 未结 4 1974
旧巷少年郎
旧巷少年郎 2020-11-27 08:37

From Thinking in C++ - Vol 1:

In the second pass, the code generator walks through the parse tree and generates either assembly lan

4条回答
  •  爱一瞬间的悲伤
    2020-11-27 09:04

    It's a matter of compiler implementation. Assembly code is an intermediate step between higher-level language (the one being compiled) and the resulting binary output. In general it's easier first to convert to assembly and after that to binary code instead of directly creating the binary code.

提交回复
热议问题