如何动态分配内存使用汇编和系统调用在Linux下 [英] How to Dynamically Allocate Memory Using Assembly and System Calls Under Linux

查看:157
本文介绍了如何动态分配内存使用汇编和系统调用在Linux下的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Linux下使用汇编语言,并使用系统调用,而不是malloc和朋友寻找动态内存分配的一些好的code的例子。

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 some of the simplest but effective ways to do this?

在英特尔386+电脑。

On Intel 386+ computers.

推荐答案

BRK(2) 。而看看 ELF

这篇关于如何动态分配内存使用汇编和系统调用在Linux下的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆