从编程的角度来看,程序是 32 位还是 64 位是什么意思? [英] From a programming point of view, what does it mean when a program is 32 or 64 bit?

查看:28
本文介绍了从编程的角度来看,程序是 32 位还是 64 位是什么意思?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是计算机科学第一年的初级程序员.我很好奇 32 位和 64 位系统,以及它如何影响开发软件.当我下载软件时,我需要在两者之间进行选择,而其他软件只有32位版本.

I'm a beginner programmer in my first year of Computer Science. I'm curious about the 32 bit and 64 bit systems, and how it affects developing software. When I download software I need to choose between the two, while other software only has a 32 bit version.

  • 对于 64 位系统是否有不同的编程方式?
  • 是否以同样的方式编译?
  • 单独的 64 位应用的主要优势是什么?

干杯

推荐答案

一般来说,64 位应用程序的主要好处是它可以访问更多内存.拥有 32 位指针,您只能访问 4GB 内存.

Generally speaking the main benefit of 64 bit application is that it has access to more memory. Having 32 bit pointer you can access only 4GB of memory.

大多数现代编译器都可以选择编译 32 位或 64 位代码.

Most modern compilers have option to compile either 32 bit or 64 bit code.

32/64 编码是相同的,除非您要处理巨大的内存中对象,在这种情况下您需要专门使用 64 位.

32/64 coding is the same unless you are dealing with huge in-memory objects, where you would need to use 64 bit specifically.

这篇关于从编程的角度来看,程序是 32 位还是 64 位是什么意思?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆