[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Custom memory allocator for running Lua on CM4
- From: Enrico Colombini <erix@...>
- Date: Wed, 2 Aug 2017 18:13:21 +0200
On 02-Aug-17 17:57, RAHUL KUMAR wrote:
Currently i have following options
2. K &R ( like
4. last not the least the OpenRTOS malloc implemenation
Not sure which one to start with.
Not sure if it would be the best choice in this case, but there is also
TLSF (Two-Level Segregate Fit), a bounded-time allocator useful in time-
and/or resource-constrained systems. I used version 1.9 to manage 1 MB
of RAM and it worked very well with Lua:
If you search the Lua-list archives looking for "tlsf" and my name, you
should find a few precious hints I got from Luiz and/or Roberto.