Windows Vista 是用什么编程语言编写的?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/380988/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-15 11:45:04  来源:igfitidea点击:

What programming language was Windows Vista programmed in?

windowswindows-vistaoperating-system

提问by Lonzo

Which programming language(s) were used to code Windows Vista?

使用哪种编程语言对 Windows Vista 进行编码?

回答by BobbyShaftoe

Well, the Windows kernel is still almost entirely C. However, there are different aspects that use C++, say some parts of the shell and so forth. The core is C. Other languages, perhaps even .NET might be used in some corners for certain applications but C is the OS language of choice in Windows.

嗯,Windows 内核仍然几乎完全是 C。但是,有使用 C++ 的不同方面,比如 shell 的某些部分等等。核心是 C。其他语言,甚至 .NET 可能会在某些应用程序的某些角落使用,但 C 是 Windows 中选择的操作系统语言。

回答by Daemin

From working with the Windows CE operating system I'd say its a mix of C for the old school code and interfaces, and a lot of C++ behind the scenes for drivers and other code. It (WinCE) uses C++ in the drivers behind a C interface to the rest of the system.

从使用 Windows CE 操作系统来看,我会说它混合了用于旧学校代码和接口的 C,以及用于驱动程序和其他代码的大量 C++。它 (WinCE) 在与系统其余部分的 C 接口背后的驱动程序中使用 C++。

Now I'm going to guesstimate and say there are many bits of C# and other code in it now as well.

现在我要猜测并说现在也有很多 C# 和其他代码。

回答by Paul

Multiple languages would have been used to create Vista.

将使用多种语言来创建 Vista。

For the low level parts, C and assembly language.

对于低级部分,C 和汇编语言。

The majority would have been in C / C++.

大多数将使用 C/C++。

Some of the higher level applications may have been written in managed code.

一些更高级别的应用程序可能是用托管代码编写的。

回答by Mark Carpenter

I would imagine a combination of C/C++ and Assembly (for device interaction).

我会想象 C/C++ 和 Assembly(用于设备交互)的组合。

回答by omini crutech

Windows vista was programmed in multiple language for different things. The entire kernel was written in C, while others parts used C++, possibly .NET as well.

Windows vista 是用多种语言为不同的东西编程的。整个内核是用 C 编写的,而其他部分使用 C++,也可能是 .NET。

回答by omini crutech

As far as I remember, the Windows Research Kernel(which is, afaik, based on XP) is written in C. I assume the rest is too. However, just because the kernel is written in C, doesn't mean the entire operating system is. There are also libraries, tools and applications without which Windows would be pretty useless. Of these, I assumethat most are written in C, C++ or C#, though thats just an assumption.

据我所知,Windows Research Kernel(即 afaik,基于 XP)是用 C 编写的。我认为其余的也是如此。然而,仅仅因为内核是用 C 编写的,并不意味着整个操作系统都是。还有一些库、工具和应用程序,没有这些,Windows 将毫无用处。其中,我假设大多数是用 C、C++ 或 C# 编写的,尽管那只是一个假设。

回答by omini crutech

Garry is always right, seriously if Microsoft deny C is getting replaced they should really check with him before they go ahead.

Garry 总是对的,严肃地说,如果微软否认 C 被替换,他们应该在继续之前与他核实。

回答by Developer

Vista operating system arrived in numerous variants for use in places like England and Kandohar as stated in the rules for the use of Vista and its definition. Some were coded in something like RCODE for home computing and others may have been coded in COMAL, VBAS or ICODE for computers based on a Commodore (CBM) 63 used in some computer base units. What the higher level languages compiled into is confidential and is the preserve of the authoring person in England, the team supporting versions created for other countries by Microsoft, with variations for install on computers for use in the workplace having a different policy inside regarding protection of business data for compliance with privacy rules.

Vista 操作系统有多种变体,可在英格兰和坎多哈尔等地使用,如 Vista 使用规则及其定义中所述。有些是用 RCODE 之类的东西编码的,用于家庭计算,而另一些可能是用 COMAL、VBAS 或 ICODE 编码的,用于基于某些计算机基本单元中使用的 Commodore (CBM) 63 的计算机。编译成的高级语言是机密的,是英格兰作者的保留,该团队支持 Microsoft 为其他国家/地区创建的版本,具有安装在工作场所使用的计算机上的变体,内部有不同的保护政策用于遵守隐私规则的业务数据。

回答by srinidhi

well having gone through most of the comments, there are quite a good guys out here who do it with only C, yes most of the kernels in the world are written using C the powerful programming language C and as pinch of salt the assembly of course for the disk and video interfaces and for some memory (DMA).

已经阅读了大部分评论,这里有相当多的人只用 C 来做这件事,是的,世界上大多数内核都是使用 C 编写的,强大的编程语言 C 和汇编当然是一小撮盐用于磁盘和视频接口以及某些内存 (DMA)。