How To Build a Operating System With C#

若如初见. 提交于 2019-12-07 20:40:41

问题


I was reading about Singularity and it was developed in part with C#, but how can I develop a operatin system in part with C#?(because the boot loader needs to be in Assembly, that I know) the thing that I want to know is where to start(tutorial, library...)?

PS: Congratulations to the Singularity developers, very nice job! ;)


回答1:


Renraku is an open source project to create an OS using .NET technologies as much as possible. This post has a link to the source on GitHub.




回答2:


The major difference between an operating system that runs on managed code vs. one that runs directly on machine code is really nothing more than having a byte-code interpreter at a very low level that processes all byte code sent to it and translates to the corresponding machine code. Once that exists, the various operating system components would be implemented in pretty much the same way as they would in a traditional OS.




回答3:


Just because you write your program in c# it doesn't have to be compiled to IL. Writing a c# to machine code compiler can be done and last time I saw an OS written in C# that was exactly what they had done



来源:https://stackoverflow.com/questions/1669993/how-to-build-a-operating-system-with-c-sharp

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!