Bootstrapping a compiler: why?

前端 未结 11 1451
花落未央
花落未央 2020-12-01 02:55

I understand how a language can bootstrap itself, but I haven\'t been able to find much reference on why you should consider bootstrapping.

The int

11条回答
  •  一生所求
    2020-12-01 03:36

    There's a principle called "eating your own dogfood". By using a tool, you demonstrate the usefulness of the tool.

    It is often asked, "if the compiler for language X isn't written in language X, why should I risk using it?"

    This of course only applies to languages suitable for the domain of compiler writing.

提交回复
热议问题