by ArbixMenix · 4y ago · 0 comments
Maybe I'm wrong, but I know that there exist CPUs made specifically to natively execute Java bytecode, so in reality if the hardware has a baked-in language interpretation it would be actually possible to write an OS completely in Java
https://people.inf.ethz.ch/wirth/ProjectOberon/Sources/Kerne...
Note that you can port any OS written in C to such a CPU with "just" a new compiler backend and a few drivers. Your OS won't take advantage of the features the CPU provides, but it will work.
Having said that, there have been OSs written in languages with heavy runtimes, even GC.