我想知道是否可以像用 C 语言编写的 windows-xp 一样进行操作,就像我可以用 java 编写那样,这样我就可以拥有与用 C 编写的相同的功能
最佳答案
理论上是的,但您仍然需要一些低级汇编代码来引导将在机器上运行的 Java VM,以及访问硬件驱动程序的低级代码。
来自 wikipedia :
Given that Sun Microsystems' Java is today one of the most dominant object-oriented languages, it is no surprise that Java-based operating systems have been attempted. In this area, ideally, the kernel would consist of the bare minimum required to support a JVM. This is the only component of such an operating system that would have to be written in a language other than Java. Built upon that JVM and basic hardware support, it would be possible to write the rest of the operating system in Java; even parts of the system that are more traditionally written in a lower-level language such as C, for example device drivers, can be written in Java.
Examples of attempts at such an operating system include JX, JNode and JavaOS.
关于java - 是否可以使用java制作操作系统?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1988196/