简体   繁体   English

为什么一切都命名为win32?

[英]Why is everything named win32?

Involving the Windows operating system, a lot of things use the number 32, especially with Win32. 涉及Windows操作系统,很多东西都使用数字32,尤其是Win32。 I see it in everything from system folders: 我在系统文件夹的所有内容中都看到了它:

C:\\Windows\\System32\\ C:\\ WINDOWS \\ SYSTEM32 \\

to system files: 到系统文件:

C:\\Windows\\System32\\win32k.sys C:\\ WINDOWS \\ SYSTEM32 \\ Win32k.sys中

to Windows app development: Windows应用程序开发:

Develop a Win32 Application 开发Win32应用程序

The significance of the number 32 and computers makes me think 32-bit processors, but, if this is correct, why is there a need to explicitly mention 32-bit systems? 数字32和计算机的重要性使我想到了32位处理器,但是,如果这是正确的话,为什么需要明确提及32位系统呢?

Googling around brought me to the Win32 API. 谷歌搜索使我进入了Win32 API。 This is, I presume, the main cause of its frequent use, but that doesn't change my question. 我认为,这是其频繁使用的主要原因,但这并没有改变我的问题。 The Windows operating system works perfectly fine on 64-bit systems. Windows操作系统在64位系统上可以正常工作。

Is Windows specialized for 32-bit systems? Windows是否专门用于32位系统?

Or is this just a historical thing (ie Windows and its API were developed before the 64-bit system emerged)? 还是仅仅是历史性的事情(即Windows及其API是在64位系统出现之前开发的)?

Before Win32 there was Win16 (although perhaps maybe not using that name), and running 32-bit code was a special feature or it had special requirements, especially your CPU had to be able to do so. 在Win32之前有Win16(尽管也许未使用该名称),并且运行32位代码是一项特殊功能,或者它具有特殊要求,特别是您的CPU必须能够这样做。

  • Intel 8086 was a 16-bit CPU with 20-bit address space. 英特尔8086是具有20位地址空间的16位CPU。
  • Intel 80286 was a 16-bit CPU with 24-bit address space. 英特尔80286是具有24位地址空间的16位CPU。
  • Intel 80386 was full 32-bit, both registers and address space. Intel 80386是完整的32位,包括寄存器和地址空间。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM