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

后端 未结 15 2322
庸人自扰
庸人自扰 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条回答
  •  萌比男神i
    2020-12-14 00:58

    because from system level, drivers need to control every bits of every bytes of the memory, other higher language cannot do that, or cannot do that natively, only C/Asm achieve~

提交回复
热议问题