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

后端 未结 4 443
予麋鹿
予麋鹿 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:04

    Use the brk system call to change the end of your data segment.

    Take a look here: http://www.linuxjournal.com/article/6390 to understand what you're doing.

提交回复
热议问题