Hi Raphael,
for the native-stuff you have to ask Ludwig for the specifics as to of why,
but most of the hosts system's implementation of standard functions are
wrapped. I think this was because our POSIX interface would otherwise
colide with the system's POSIX interface. As for the other boards I'm
refrasing only what I've been told, so please correct me if I'm wrong,
anyone: newlib provides free() for most of our ARM boards (provided sbrk()
is implemented as a syscall). For msp430 there is currently only
oneway-malloc available and for AVR I'm not sure about the implementation.
Maybe Hinnerk can shed some light on this :-).

Cheers,
Martine

2015-01-22 10:41 GMT+01:00 Hiesgen, Raphael <raphael.hies...@haw-hamburg.de>
:

>
> Hello,
>
> I am curious as to how memory management works. Searching the code for
> "void free(" returns two implementations. One implements the function in
> the native port as a wrapper of the systems implementations (?) and the
> other does nothing (found in malloc.h in the folder oneway-malloc and
> implemented in oneway-malloc.c).
>
> Is there another implementation I have overlooked or is there no way to
> free memory on boards?
>
> Thanks
> Raphael
>
>
>
> _______________________________________________
> devel mailing list
> devel@riot-os.org
> http://lists.riot-os.org/mailman/listinfo/devel
>
_______________________________________________
devel mailing list
devel@riot-os.org
http://lists.riot-os.org/mailman/listinfo/devel

Reply via email to