memory - 为什么 RAM 是 2 的幂?

标签 memory android-emulator ram

为什么 RAM 的数量总是 2 的幂?

512、1024等

具体来说,Android模拟器使用512、768、1024 RAM有什么区别?

最佳答案

Memory is closely tied to the CPU, so making their size a power of two means that multiple modules can be packed requiring a minimum of logic in order to switch between them; only a few bits from the end need to be checked (since the binary representation of the size is 1000...0000 regardless of its size) instead of many more bits were it not a power of two.

Hard drives are not tied to the CPU and not packed in the same manner, so exactness of their size is not required.


来自 https://superuser.com/questions/235030/why-are-ram-size-usually-in-powers-of-2-512-mb-1-2-4-8-gb
正如 BrajeshKumar 在对 OP 的评论中所引用的那样。谢谢布拉杰什!

关于memory - 为什么 RAM 是 2 的幂?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22096327/

相关文章:

c++ - 如何判断内存属于堆还是栈?

java - Android 中的堆转储和内存使用差异?

android - 如何在 Windows 8 中禁用 Hyper-V 和安装 HAXM

android - 在 Android 模拟器中模拟 GPS 路线

java - 做了一个 "virus",需要提示

ios - CorePlot 多个散点图内存消耗巨大

image-processing - SIFT 在内存方面有多贵?

android - 如何将 Bango SDK 添加到我的 android 项目中?

android - 为什么 HAXM 配置内存太低 "969 MB"?它与需要 1 GB RAM 的 AVD API 级别 23 不兼容

android - 如何获取设备的总 RAM 大小?