How to Dynamically Allocate Memory Using Assembly and System Calls Under Linux

后端 未结 4 450
予麋鹿
予麋鹿 2021-01-31 17:53

I\'m looking for some good code examples of dynamic memory allocation using an assembly language under Linux and using system calls, not malloc and friends.

What are som

4条回答
  •  终归单人心
    2021-01-31 18:19

    An alternative to brk() is to use the mmap() system call, with MAP_ANONYMOUS | MAP_PRIVATE.

提交回复
热议问题