3 ms·
Creating a C virtual machine might work for most user space applications, but what about operating systems and system libraries? Most operating systems and low
by 2trill2spill 11y ago
Creating a C virtual machine might work for most user space applications, but what about operating systems and system libraries? Most operating systems and low level libraries are implemented in C, or at least partially, and implementing a C virtual machine that you then want to run kernel code on top of, seems daunting. Performance wise I would assume a C virtual machine would be on par with java (JVM).
So I would say a C virtual machine wouldn't be a very fruitful endeavor, Most user space applications can be written in a Memory safe language, while the most incumbent C code, kernel and system libraries probably can't or at least shouldn't be executed in a virtual machine.