lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I have subscribed recently so not aware of previous discussions. If you can pull the old mailing list or conclusion that would be helpful :) 

Currently i have following options

1.       dlmalloc(

2.        K &R ( like

3.       uClibc (

4. last not the least the OpenRTOS malloc implemenation  (

Not sure which one to start with.

On Wed, Aug 2, 2017 at 6:19 PM, Ką Mykolas <> wrote:

On Wed, Aug 2, 2017 at 2:51 PM, Luiz Henrique de Figueiredo <> wrote:
You'll have to adapt morecore to your needs: for instance, by replacing sbrk.

I guess, this problem was already discussed in this mailling list at least couple of times :}

I'd like to expand on that a little bit. In general, You'll have to deal with linker scripts and mapping properly the RAM.
Also, there are plenty of MCUs with terribly segmented RAM, in chunks of 16-32 whatever kbytes. Which... makes
sbrk() implementation a bit tricky. 

All in all, that's the generic way dealing with more or less custom or just various embedded devices like ARM boards.