堆状态 [英] heap status

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

问题描述

大家好,


有没有办法在ANSI-C中检查堆的状态

或标准C .... ??


如果我的内存在旧的turbo c ++ 3.0编译器中是正确的那么

一些宏名称_HEAPOK,_HEAPEMPTY和

_HEAPCORRUPT,在标准C中是否有类似的东西。????

Hi all,

Is there a possible way to check the status of heap in ANSI-C
or standard C....????

if my memory is correct in the old turbo c++ 3.0 compiler there were
some macros by name _HEAPOK, _HEAPEMPTY, and
_HEAPCORRUPT , is there something similar to this in standard C.????

推荐答案

aa ***** @ gmail.com 写道:

大家好,


有没有办法在ANSI-C中检查堆的状态

或标准C ....
Hi all,

Is there a possible way to check the status of heap in ANSI-C
or standard C....????



您是否只阅读了对帖子的回复?我们最近指出

(再一次)C不关心堆,堆栈或段。


所以答案很简单 - 不。您可能有一种方法可以在特定平台上使用

,但这不是C

标准的一部分。您可以询问一个讨论您正在使用的C

实现和/或平台的新组。


顺便说一句 - 据我所知,标准是一个ISO标准,即

已被ANSI采用,因此或在你的问题中是无关紧要的。

Do you only read replies to your postings? We''ve recently pointed out
(once again) that C doesn''t care about heaps, stacks or segments.

So the answer is simply - no. There may be a way with the implementation
you are using on a specific platform, but that is not part of the C
standard. You could ask on a newgroup which discusses the C
implementation and/or platform you are using.

By the way - as I understand it the standard is an ISO standard which
has been adopted by ANSI, so the "or" in your question is irrelevant.


aa*****@gmail.com 写道:

大家好,


有没有办法在ANSI中检查堆的状态-C

或标准C .... ????


如果我的内存在旧的turbo c ++ 3.0编译器中是正确的那么

名称_HEAPOK,_HEAPEMPTY和

_HEAPCORRUPT的一些宏,在标准C中有类似的东西。????
Hi all,

Is there a possible way to check the status of heap in ANSI-C
or standard C....????

if my memory is correct in the old turbo c++ 3.0 compiler there were
some macros by name _HEAPOK, _HEAPEMPTY, and
_HEAPCORRUPT , is there something similar to this in standard C.????



No.

No.


aa ***** @ gmail.com 写道:
aa*****@gmail.com wrote:

大家好,


是有一种方法可以在ANSI-C中检查堆的状态

或标准C ....
Hi all,

Is there a possible way to check the status of heap in ANSI-C
or standard C....????



No.


您如何看待堆的状态?意思是[我认为

bythe heap你的意思是由malloc和朋友管理的内存],

如果你拥有它,你会对状态做什么?


-

Heaped Highly Hedgehog

我们没时间找到我们想知道的一切。

- James Blish,/一个Cy钹的冲突/

No.

What do you think "the status of the heap" means [I assume that
by "the heap" you mean the memory managed by malloc and friends],
and what would you do with the status if you had it?

--
Heaped Highly Hedgehog
"We did not have time to find out everything we wanted to know."
- James Blish, /A Clash of Cymbals/


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

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