delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2014/04/21/12:11:02

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
X-Recipient: djgpp-workers AT delorie DOT com
Message-ID: <53554308.60609@iki.fi>
Date: Mon, 21 Apr 2014 19:10:48 +0300
From: Andris Pavenis <andris DOT pavenis AT iki DOT fi>
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: gcc-4.9.0 20140411 snapshot for DJGPP
References: <53492C99 DOT 7090109 AT iki DOT fi> <5353CE51 DOT 2010801 AT gmx DOT de>
In-Reply-To: <5353CE51.2010801@gmx.de>
Reply-To: djgpp-workers AT delorie DOT com

On 04/20/2014 04:40 PM, Juan Manuel Guerrero wrote:
>
> Have you ever managed to merge nmalloc into your local CVS repository?
> IIRC I have tried a year ago but I failed.  I did not really 
> understood how
> djgpp's malloc worked and I also did not understood how nmalloc worked
> so it was impossible to me to replace one with the other and I gave up.
> If you have merged the code you can send me a patch and I will try the
> nmalloc changes with some code of mine.
>
I tried today. All seems to work OK as far as I have tested.

Change is however incompatible with previous malloc debug feature. I 
guess there
will be difficult to do anything with that.

I rebuilt and run GiNaC tests mentioned in earlier post. Now the time 
required
for running these tests is much shorter. All tests passed OK as earlier.

About requirement to understand implementation details to replace memory 
allocator:
allocator internals are not used directly by other parts of library. As 
result one can
treat it as "black box" with specified API. Of course testing is needed 
in any case

Some details:
- I put some publicly visible .h files into include/libc (malldbg.h and 
sysquery.h). Old
   version defined malloc debug functions in stdlib.h. Now they are 
defined in 2 files
   mentioned above. I would prefer not to include libc/malldbg.h from 
stdlib.h as it
   would require to include stdio.h to have struct FILE.
- What to do with copyright texts. Unfortunately we cannot ask author
   Charles B. Falconer any more as we are some years too late
- There may be still discrepancies in docs. Perhaps one can fix them later

I have put the files at
http://ap1.pp.fi/djgpp/djdev/djgpp/20140421/

I did initial tests under Windows Vista. Packages were built under Linux
(Fedora 20 x86_64)

Andris




- Raw text -


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