malloc的实现 [英] Implementation of malloc

查看:117
本文介绍了malloc的实现的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

任何人都可以告诉我如何实施malloc。

谢谢和问候,

Raman Chalotra

解决方案

拉曼写道:


任何人都可以告诉我如何实现malloc。



K& R中有一个例子。


你的那个怎么了?我有吗?


-

克里斯电刺猬 Dollin

我们的未来看起来很安全,但它完全不在我们手中

- Magenta,/ Man and Machine /





1月30日下午1点39分,Chris Dollin< chris.dol ... @ hp.comwrote:


Raman写道:


任何人都可以告诉我如何实现malloc.There是一个例子K&安培; R。



你得到的那个怎么了?


-

Chris" electric hedgehog" Dollin

我们的未来看起来很安全,但它完全不在我们手中

- Magenta,/ Man and Machine /



实际上我在面试时遇到了这个问题。


拉曼写道:


Chris Dollin< chris.dol ... @ hp.comwrote:


> Raman写道:


>>任何人都可以告诉我如何实现malloc。


K& R中有一个例子。你得到的那个怎么了?



实际上我在面试时遇到了这个问题。



你不能,也不便携。这就是为什么它是一个系统功能。

然而,对于DJGPP,可能还有一些Unices,请参阅

nmalloc.zip in:


< http://cbfalconer.home.att.net/download/>


-

Chuck F (cinefalconer at maineline dot net)

可用于咨询/临时嵌入式和系统。

< http://cbfalconer.home.att.net>


Hi All,
Can any one tell me how to implement malloc.
Thanks and Regards,
Raman Chalotra

解决方案

Raman wrote:

Can any one tell me how to implement malloc.

There''s an example in K&R.

What''s wrong with the one you''ve got?

--
Chris "electric hedgehog" Dollin
"Our future looks secure, but it''s all out of our hands"
- Magenta, /Man and Machine/




On Jan 30, 1:39 pm, Chris Dollin <chris.dol...@hp.comwrote:

Raman wrote:

Can any one tell me how to implement malloc.There''s an example in K&R.


What''s wrong with the one you''ve got?

--
Chris "electric hedgehog" Dollin
"Our future looks secure, but it''s all out of our hands"
- Magenta, /Man and Machine/


Actually I Got this question in A Interview .


Raman wrote:

Chris Dollin <chris.dol...@hp.comwrote:

>Raman wrote:

>>Can any one tell me how to implement malloc.


There''s an example in K&R. What''s wrong with the one you''ve got?


Actually I Got this question in A Interview .

You can''t, and be portable. That''s why it''s a system function.
However, for DJGPP, and possibly some assortment of Unices, see
nmalloc.zip in:

<http://cbfalconer.home.att.net/download/>

--
Chuck F (cbfalconer at maineline dot net)
Available for consulting/temporary embedded and systems.
<http://cbfalconer.home.att.net>


这篇关于malloc的实现的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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