答案在很大程度上取决于目标操作系统... 或者其他......as noted, these are not standard.following this, they are not even a good idea...now, for general info:malloc implementations tend to grab chunks of memory from the OS, and brkand sbrk were one such method (they worked by sliding a pointer, andgenerally mapping in pages as needed and so on).another, generally better, method, is the use of mmap (on linux andfriends).on windows, a general way to grab raw memory is through VirtualAlloc.however, all this is a generally non-portable issue, and so, the exactanswers will depend highly on the target OS...or such... 试试新闻:comp.unix.programmer,他们会立即告诉 你不要使用这些功能。Try over on news:comp.unix.programmer, where they will promptly tellyou not to use those functions. 这篇关于关于brk和sbrk的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持! 上岸,阿里云!