Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
| Newsgroups | comp.lang.c |
|---|---|
| Date | 2016-07-17 00:30 -0700 |
| References | <53ccbf4e-2d12-4d86-9af1-9062ff002f9c@googlegroups.com> |
| Message-ID | <cc9fb427-cec5-42d2-8bea-e4c013a0fdfe@googlegroups.com> (permalink) |
| Subject | Re: Feedback for a malloc implementation |
| From | Malcolm McLean <malcolm.mclean5@btinternet.com> |
On Sunday, July 17, 2016 at 1:45:41 AM UTC+1, Aaditya Kalsi wrote: > Hello, > > I have written a new implementation of malloc() and free() and > sibling APIs after studying dlmalloc and other prior art. > > I have written it with the goals: > > 1. Easy to read and maintain. > 2. Be more memory conserving. > 3. High efficiency and good performance. > 4. Portability. > > I have a (I believe) working version with some tests and documentation > and am hoping for some feedback on design and implementation as well > as any other constructive feedback. > > Link to source: > https://github.com/akalsi87/akmalloc > > Link to documentation: > https://rawgit.com/akalsi87/akmalloc/1.0.1/_layouts/index.html > > The library is modeled close to dlmalloc because of its customizability > but in doing so I have tried to not obfuscate too much with macros. > The code will be far more useful if you can package it as one source file and one associated header, the exports only the symbols ak_malloc(), ak_realloc(), ak_free(), maybe ak_malloc_usable_size(). The there's far too much Chinese box programming. ak_malloc should itself do most of the work. And you don't need to typedef anything except a few basic structures.
Back to comp.lang.c | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-16 17:45 -0700
Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 12:22 +0530
Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 17:58 +0530
Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 13:40 +0100
Re: Feedback for a malloc implementation Udyant Wig <udyant.wig@gmail.com> - 2016-07-17 23:06 +0530
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:40 -0700
Re: Feedback for a malloc implementation Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-07-17 00:30 -0700
Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 10:54 +0100
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 04:36 -0700
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 04:31 -0700
Re: Feedback for a malloc implementation Malcolm McLean <malcolm.mclean5@btinternet.com> - 2016-07-17 11:40 -0700
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:41 -0700
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 07:02 -0700
Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 20:38 +0100
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 13:44 -0700
Re: Feedback for a malloc implementation BartC <bc@freeuk.com> - 2016-07-17 22:19 +0100
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-17 18:08 -0700
Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-18 09:40 -0700
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-18 10:48 -0700
Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-20 08:45 -0700
Re: Feedback for a malloc implementation Keith Thompson <kst-u@mib.org> - 2016-07-20 09:28 -0700
Re: Feedback for a malloc implementation Tim Rentsch <txr@alumni.caltech.edu> - 2016-07-21 18:25 -0700
Re: Feedback for a malloc implementation Aaditya Kalsi <aadityakalsi@gmail.com> - 2016-07-22 16:52 -0700
csiph-web