Why is everything named win32?

独自空忆成欢 提交于 2021-01-27 18:05:03

问题


Involving the Windows operating system, a lot of things use the number 32, especially with Win32. I see it in everything from system folders:

C:\Windows\System32\

to system files:

C:\Windows\System32\win32k.sys

to Windows app development:

Develop a Win32 Application

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?

Googling around brought me to the 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.

Is Windows specialized for 32-bit systems?

Or is this just a historical thing (i.e. Windows and its API were developed before the 64-bit system emerged)?


回答1:


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.

  • Intel 8086 was a 16-bit CPU with 20-bit address space.
  • Intel 80286 was a 16-bit CPU with 24-bit address space.
  • Intel 80386 was full 32-bit, both registers and address space.


来源:https://stackoverflow.com/questions/45436953/why-is-everything-named-win32

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