[PATCH newlib]An alternative implementation of malloc family's functions with small foot-print

Bin Cheng bin.cheng@arm.com
Mon May 13 07:44:00 GMT 2013


Hi all,

As a part of our library work in GNU Tools for ARM Embedded Processors, we
implemented an alternative implementation of malloc family's functions with
small foot-print. 

We have discussed before how to integrate the code with newlib and it seems
reasonable to have a configuration option to control it. 

So this patch introduces new implementation of malloc functions in file
"nano-mallocr.c" and a new option "--enable-newlib-nano-malloc" to control
it. The option is disabled by default so it won't change the default
behavior. 

We have done lots of internal review work and the code has been applied in
GNU Tools for ARM Embedded Processor and used for a while, is it OK? Any
comments will be highly appreciated.

As for the documentation, I will try to describe newlib's configuration
options including this one in readme later.

Thanks.

ChangeLog entry is:

2013-05-13  Joey Ye  <joey.ye@arm.com>
	    Bin Cheng  <bin.cheng@arm.com>
	* configure.in (--enable-newlib-nano-malloc): New option.
	* configure: Regenerated.
	* libc/configure.in (--enable-newlib-nano-malloc): New option.
	* libc/configure: Regenerated.
	* libc/stdlib/Makefile.am (NEWLIB_NANO_MALLOC): Use.
	* libc/stdlib/Makefile.in: Regenerated.
	* libc/stdlib/nano-mallocr.c: New file, implementing nano
	version malloc family functions.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: nano-mallocr-20130417.cvs.txt
URL: <http://sourceware.org/pipermail/newlib/attachments/20130513/ecb5cb16/attachment.txt>


More information about the Newlib mailing list