Re: [riot-devel] Oneway-Malloc

2016-08-09 Thread Carsten Bormann
Carsten Bormann wrote:
> https://twitter.com/c4bo/status/676393852798922752

OK, that may have been a bit opaque :-)

http://www.barrgroup.com/Embedded-Systems/How-To/Malloc-Free-Dynamic-Memory-Allocation
http://www.embedded.com/design/programming-languages-and-tools/4416457/EMB-tm-6-15-13-Dynamic-memory-and-heap-contiguity
http://stackoverflow.com/questions/1725923/how-bad-is-it-to-use-dynamic-datastuctures-on-an-embedded-system
http://www.nongnu.org/avr-libc/user-manual/malloc.html

If you really need dynamic memory for some algorithm, consider an arena
allocator.
https://en.wikipedia.org/wiki/Region-based_memory_management

Grüße, Carsten
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel


Re: [riot-devel] Oneway-Malloc

2016-08-09 Thread Carsten Bormann
https://twitter.com/c4bo/status/676393852798922752

:-)

Grüße, Carsten


Sam Kumar wrote:
> Hello,
> I noticed that there is a "oneway-malloc" module in RIOT OS. It appears
> to be a thin wrapper around sbrk that only supports allocating memory,
> not freeing it.
> 
> I am doing some development using RIOT OS, and dynamic memory allocation
> would be useful to me. Is there already a module that implements dynamic
> memory allocation suitable for general-purpose use in the kernel and in
> user programs?
> 
> If such a module does not already exist, I am willing to contribute a
> lightweight implementation of malloc, realloc, calloc, and free to
> replace the oneway-malloc module.
> 
> Sam Kumar
> 
> ___
> devel mailing list
> devel@riot-os.org
> https://lists.riot-os.org/mailman/listinfo/devel
___
devel mailing list
devel@riot-os.org
https://lists.riot-os.org/mailman/listinfo/devel