Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uflorida!ukma!rutgers!rochester!pt.cs.cmu.edu!isl1.ri.cmu.edu!scotts From: scotts@isl1.ri.cmu.edu (Scott Safier) Newsgroups: comp.sys.sgi Subject: -lmalloc Message-ID: <4143@pt.cs.cmu.edu> Date: 28 Jan 89 20:13:00 GMT Reply-To: scotts@isl1.ri.cmu.edu (Scott Safier) Organization: Carnegie-Mellon University, CS/RI Lines: 22 Keywords: We have several personal Iris's running IRIX 3.1. We have ported some software from BSD systems, and found that there is a difference between the C function malloc in /usr/lib/libbsd.a and /usr/lib/libmalloc.a. In particular the malloc in the latter library is 8 times faster (by our estimates) than the malloc in the bsd library (or the malloc provided with gnu emacs). But there is also something strange with -lmalloc. Sometimes, programs which execute perfectly with the bsd malloc, core dump when the other malloc is invoked. For example, using X lib with bsd malloc is ok, but with lmalloc core dumps occur. Can somebody explain what the exact difference between these two functions are? Thanks, __ / \ \__ -+--+- Scott Safier \ _ __ | | Center for Integrated Manufacturing \__/ (__/\_)_/|_/|_/ Decision Systems Carnegie Mellon --