3 ms·
How about an operating system that doesn't execute native code directly anymore. No Segfaults. All programs live in the same VM space.
by ant6n 11y ago
How about an operating system that doesn't execute native code directly anymore. No Segfaults. All programs live in the same VM space.
- cpitman 11y agoIt's pretty much dead now, but Microsoft Research had a project called Singularity (http://research.microsoft.com/en-us/projects/singularity/ http://research.microsoft.com/en-us/projects/singularity/). It's an entire OS implemented in Spec#, which is a subset of C# + Code Contracts. It was built so that contracts between programs could be statically verified when compiled, allowing applications to all run in the kernel's address space.
- ferrari8608 11y agoIsn't that kind of what Android does?
- ant6n 11y agoWell, if the JVM was the basic layer of the operating system, then yes. But really it's some form of Linux, there's a lot of native code running, system calls, user and kernel mode etc. Apps can use native code too.