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

查看:97
本文介绍了从编程的角度来看,当程序是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天全站免登陆