系统编程是否可以在C#.NET中编写编译器或操作系统? [英] Is System Programming like writing a compiler or operating systems possible in C#.NET?
本文介绍了系统编程是否可以在C#.NET中编写编译器或操作系统?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
系统编程是否可以在C#.NET中编写编译器或操作系统?
是否可以像汇编语言或C,C ++一样编程?
因为我们听说UNIX操作系统是用C语言编写的。 C#.NET是否具有相同的功能?
Is System programming like writing a compiler or operating system possible in C#.NET?
Is it possible to program equally like assembly language or C,C++?
because we have heard that UNIX operating system is written using C language . Does C#.NET has equal capability?
推荐答案
请参阅此CP文章http://www.codeproject.com/Articles/99928/Develop-Your-Own-Operating -System-in-C-or-VB-NET
See this CP article http://www.codeproject.com/Articles/99928/Develop-Your-Own-Operating-System-in-C-or-VB-NET
编译器:是的。复杂,但所有好的编译器都是。
操作系统?排序是,但有很多限制和警告。
在C#中编写操作系统的问题是C#需要安装整个.NET:这需要安装Windows,所以你的操作系统将位于.NET框架的顶部,它位于Windows之上以便运行 - 它可以工作,但这会浪费一些资源。 。:笑:
对于OS(或编译器)编写,你可能最好使用本机代码而不是基于.NET。
Compiler: yes. Complicated, but all good compilers are.
Operating system? Sort of "yes" but with lots of restrictions and caveats.
The problem with writing an OS in C# is that C# requires the whole of .NET to be installed: which requires Windows to be installed, so your OS will sit on top of the .NET framework, which sits on top of Windows in order to run - it'd work, but it would be a bit of a major waste of resources...:laugh:
For OS (or compiler) writing, you are probably better off with native code rather than .NET based.
维基百科的系统编程 [ ^ ]。
C#
不适合系统编程(C
和C ++
是)。
所以你不要使用C#
用于开发操作系统而没有人阻止你使用C#
编写编译器(开发编译器不是系统编程任务)。
System programming at Wikipedia[^].
C#
is not well suited for system programming (C
andC++
are).
So you don't useC#
for developing an Operative System while no one prevents you writing a compiler usingC#
(developing a compiler is not a system programming task).
这篇关于系统编程是否可以在C#.NET中编写编译器或操作系统?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文