Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!husc6!mit-eddie!ll-xn!ames!sdcsvax!ucsdhub!jack!man!nusdhub!rwhite From: rwhite@nusdhub.UUCP (Robert C. White Jr.) Newsgroups: comp.lang.c Subject: Re: Optimizing use of malloc Message-ID: <166@nusdhub.UUCP> Date: Tue, 20-Oct-87 21:32:51 EDT Article-I.D.: nusdhub.166 Posted: Tue Oct 20 21:32:51 1987 Date-Received: Fri, 23-Oct-87 01:43:13 EDT References: <4753@oberon.USC.EDU> <1105@wjvax.UUCP> Organization: National University, San Diego Lines: 17 Summary: mallopt. In article <1105@wjvax.UUCP>, brett@wjvax.UUCP (Brett Galloway) writes: > I am curious if any work has been done by the ANSI group with regard to > malloc(). Is mallopt(3X) part of the new ANSI standard? I know that you have to include and it is an "extended" library on our system. Aparently it lets you "read" and "set" the granularity of the malloc() subsystem. While I havent tried it, but it looks like if you set the "granule size" to 1 it will round up the the "minimum granule" defined in the library. Where minimum granule is the smallest value which will provide alignment. It seems that if it is not ANSI, it should be. You could "set" 1 and then read the actual value to discover your alignment stats. Rob.