3 ms·
There are operating systems written in other languages than C. A driver doesn't need to be implemented in C, but the kernel API is likely written in C, your co
by GoblinSlayer 5y ago
There are operating systems written in other languages than C.
A driver doesn't need to be implemented in C, but the kernel API is likely written in C, your code needs to talk to it somehow. If your driver is written in C, it's as simple as #include.
- wruza 5y agoIsn’t this sort of circular? If very low-level, I mean in/out, lgdt, etc, were exposed as v8-bare-metal modules, it would be as simple as require() then. t = require(“awesome-8253”) p = require(“pio-node”) // cast your usual 0x42, 0x43, 0x61 spells
- pjmlp 5y agoYes, contrary to C myths, any language can have those primitives as Assembly libs, which ISO C also requires anyway.