ARM Cortex-M Microcontroller startup files

Martin Nowak via Digitalmars-d digitalmars-d at puremagic.com
Sat May 2 02:01:56 PDT 2015


On Saturday, 2 May 2015 at 08:33:34 UTC, Timo Sintonen wrote:
> It is ok for me and it is used in our production code that does 
> not yet use D. I am still open for other solutions.
> These functions should be at least extern C because library 
> code written in C may use them.

Newlib already comes with a malloc implementation, you just need 
to implement _sbrk_r.
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;a=blob;f=newlib/libc/stdlib/nano-mallocr.c;h=8d6ca5ce05a89853e40f80b583f0680a77bd4b67


More information about the Digitalmars-d mailing list