pico-feedback icon indicating copy to clipboard operation
pico-feedback copied to clipboard

Better memory management documentation

Open niansa opened this issue 2 years ago • 4 comments

Some documentation about how heap memory is managed here would be useful. Like, what algorithm etc.

I'm mostly interested in a way to check memory stats (used/available) but I can't even find the code responsible for allocation.

niansa avatar Jul 15 '23 19:07 niansa

ping @kilograham ?

lurch avatar Jul 15 '23 20:07 lurch

e.g. here https://forums.raspberrypi.com/viewtopic.php?p=2071360&hilit=memory+heap#p2071360 there are a bunch of heap threads... this is managed by the c-library (newlib)

kilograham avatar Jul 15 '23 21:07 kilograham

@kilograham Something that should go into the Pico C SDK book do you think?

aallan avatar Jul 16 '23 14:07 aallan

@nathan-contino Sounds like we should possibly digest some of the forum content into the Pico C SDK book.

aallan avatar Sep 05 '23 10:09 aallan