Why are drivers and firmwares almost always written in C or ASM and not C++?

后端 未结 15 2363
庸人自扰
庸人自扰 2020-12-14 00:22

I am just curious why drivers and firmwares almost always are written in C or Assembly, and not C++?

I have heard that there is a technical reason for this.

15条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-14 00:49

    Windows drivers are written in C++.
    Linux drivers are written in c because the kernel is written in c.

提交回复
热议问题