Mail Archives: djgpp/2002/01/27/09:45:13
In article <3C4B0ED1 DOT 3F274F98 AT is DOT elta DOT co DOT il>,
Eli Zaretskii <eliz AT is DOT elta DOT co DOT il> wrote:
)I think the DJGPP implementation of malloc is optimized for allocations more
)than deallocations. But you can easily see where're the hot spots if you
)compile malloc.c from the library with -pg, link with -pg, and then profile
)the test program. That's the beauty of Free Software: the sources are
)freely available to study and scrutinize.
)
)I have no idea what does lcc use in its library.
)
)Btw, a program should not need to free its heap before it exits. The OS
)will take care about it.
This is completely OS dependent. Some OS will do that, and some will
not.
Mike
--
char *p="char *p=%c%s%c;main(){printf(p,34,p,34);}";main(){printf(p,34,p,34);}
This message made from 100% recycled bits.
I can explain it for you, but I can't understand it for you.
I don't speak for Alcatel <- They make me say that.
- Raw text -