delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2002/12/04/04:35:46

Message-ID: <3DEDB313.9627F062@yahoo.com>
Date: Wed, 04 Dec 2002 02:47:31 -0500
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com, Martin Stromberg <eplmst AT epl DOT ericsson DOT se>
Subject: Re: 2.04 CVS Build plan
References: <200211250814 DOT JAA08806 AT lws256 DOT lu DOT erisoft DOT se>
Reply-To: djgpp-workers AT delorie DOT com

*** Posted and mailed ***
Martin Stromberg wrote:
> 
> > 1) Resolve the malloc() issue
> 
> > We either need to modify our free algorithm with an early out to
> > stop merging blocks if the free list is long, or convert to the
> > new contributed code.  We could do a test build with the new
> > malloc() hand inserted to see if most things behave properly.
> 
> I did this, if building libc and the accompanying tools counts.
> 
> > to tweak interfaces or change documentation.  Given the time limits
> 
> This hasn't had any progress. I'm waiting for the original author
> (CBFalconer) (or somebody else) to correct these issues.

What issues?  AFAICT compiling the original source with NDEBUG
results in a module ready for inclusion in the main library.  I
added the following readme to the distribution, not sure just now
if it is in the version on my site.  The nmalloc code has not been
altered.

---- readme quoted ----
[1] c:\c\malloc>type readme.txt
This is intended to be prepared via the makefile.

To create a testable debug version, enter "make tnmalloc".

To create an object module for use in actual systems, enter "make
malloc.o".  This will have the normal names, malloc, free,
realloc.

To create a version for profiling, enter "make tmallocp".  The
module
mallocp.o created is generally suitable for profiling, and has the
usual
names.

To create a cross-reference, enter "make xrf" (under DOS boxes
only)

The various compile time flags are set up appropriately.  In
particular
malloc.o should be immediately ready for inclusion in a library. 
It may be
desirable to "strip" debugging information from the module.

"make all" creates everything, "make clean" wipes them out.

The little test 'evilalgo' can be linked to either the stock
malloc system,
or to the malloc.o generated above.  Then time execution for an
argument of
200000.  The original library will probably fail where nmalloc
will
succeed, and nmalloc will do it a lot faster.

Bug reports to cbfalconer AT worldnet DOT att DOT net.
---- End of file ----

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019