高级语言的情况:64 位还是 32 位?

发布于 2024-08-04 12:11:58 字数 459 浏览 2 评论 0原文

随着 OS X 10.5.7 的发布,关于 64 位应用程序与 32 位应用程序的讨论越来越多......制造商将不得不转换应用程序,而制造商将无法很快转换应用程序由于缺乏资源(这显然是一个很大的问题)等。转换某个应用程序有什么好处(例如 iTunes) 会是,等等......

我想知道,当你在 VM 中运行时(我的意思是像 .Net Framework 或 JVM)并且仅在“托管代码”(在 Java 中,没有 JNI,不确定在 Ruby 中这会是什么):

  1. 当您的 VM 变成 64 位时,您是否会获得好处,而无需自己了解这些东西?或者
  2. 您是否真正获得了好处(也没有转换的麻烦),因为您的应用程序与可能的情况相比效率相当低(尽管可能足够快来完成您需要的操作)?

With OS X 10.5.7 coming out, there's been a lot of talk about apps that are 64-bit vs. apps that are 32-bit... manufacturers that will have to convert apps, manufacturers that will not be able to any soon due to a lack of resources (it's apparently a huge deal), etc. What the benefits of converting a certain app (like iTunes) would be, etc....

I'm wondering if, when you run in a VM (I mean like the .Net Framework or the JVM) and code only in "managed code" (in Java, no JNI, not sure what this would be in Ruby):

  1. do you get the benefits when your VM becomes 64-bit without ever having to know about this stuff yourself? OR
  2. do you not really get the benefits (nor the hassle of converting), since your apps are pretty inefficient compared to what's possible (though perhaps fast enough to do what you need)?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

浮生面具三千个 2024-08-11 12:11:58

我不能代表 CLR(我假设它是类似的),但 64 位 JVM 将为您提供 64 位的所有内存优势,而无需进行任何转换。

I can't speak for the CLR (I would assume its similar), but a 64 bit JVM will give you all the memory benefits of 64 bit with no conversion whatsoever.

烏雲後面有陽光 2024-08-11 12:11:58

我开发 64 位的主要原因是内存。使用 64 位指针可寻址更多内存,对于某些问题域,32 位的理论 4GB 限制(通常更少)并不令人满意。

对于像 iTunes 这样的东西,转换几乎毫无意义,因为它是一个低功耗应用程序,不需要大内存。

我不确定 64 位 OSX 如何处理 32 位二进制文​​件,但在 Windows 中,模拟近乎完美,并且对于许多应用程序来说,根本不需要升级。

The main reason I develop for 64bit is memory. Much more memory is addressable with 64 bit pointers, and for some problem domains, a theoretical 4GB limit at 32 bit (often less) is less than satisfactory.

For something like iTunes, the conversion is near pointless, as it is a low powered app with no need for large memory.

I'm not sure how 64bit OSX handles 32bit binaries, but in Windows, the emulation is near perfect, and for many apps, there's simply no need to upgrade.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文