What language do they build other languages with?

后端 未结 8 983
青春惊慌失措
青春惊慌失措 2021-01-31 09:31

What language is used to build low level languages like c++ and java?

How could you build the first language with no language?

8条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-31 10:21

    Much of this kind of thing is done in C.

    The first C compiler was not written in C; it was PDP-11 assembler. Other early C compilers have been written in various assembler languages.

    But all subsequent C compilers actually are written in C, based on an early "Portable C Compiler". Yes, it's circular. But the version x compiler can be used to build the version x+1 compiler.

提交回复
热议问题