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.
在特定的 Linux 发行版(在我的例子中是 Suse 9 和 Suse 10)中使用了 malloc/free 的哪个实现?
两个版本之间有变化吗?
32 位和 64 位版本的算法是否相同?
malloc并free在 C 库而不是操作系统本身中实现。如果你知道你有什么 C 库,你就可以知道这一点。我不知道 Suse,但大多数 linux 将使用 glibc(C 标准库的 GNU 版本)。
malloc
free