Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 gem5 上做了一个 x86 架构。现在,如果我们使用 malloc 运行带有内存分配代码的可执行文件,那么该内存将从我的系统中分配,还是分配给此 x86 架构的虚拟内存。
我认为 gem5 使虚拟机适用于任何 ISA(指令集架构)。所以 malloc 函数分配的内存来自分配给 x86 架构的内存区域。它是 x86 的实际内存,但仅限于 X86。假设 1 GB 分配给 x86,那么将分配 1 GB 范围内的某个区域。不是操作系统或用户使用的剩余内存区域。