Subj : Re: Spidermonkey: JS_malloc and memory usage To : netscape.public.mozilla.jseng From : Brendan Eich Date : Sat Sep 10 2005 12:27 pm Weiyang Zhou wrote: > Thanks for the advice. But we are working on embedded system and there is no > OS support. How can I find out how much memory left for heap? There has to be some way, since SpiderMonkey does not implement malloc or the OS memory management subsystem. You need to ask the "OS" (whether via library code such as malloc, in a typical OS, or by making lower-level system calls). /be .