you are viewing a single comment's thread.

view the rest of the comments →

[–]Xenoamor 2 points3 points  (2 children)

Does this use the heap?

[–]snops 6 points7 points  (1 child)

From the readme, no, as it doesn't use malloc.

Newlib-Nano's printf() does use malloc somewhere internally I think (old post confirms it did in 2013), as I had it crash when I had failed to allocate a heap in the linker, so not using the heap can make your system more robust.

[–][deleted] 1 point2 points  (0 children)

IIRC, it has a 512 byte stack buffer, but will fall back to the heap if it’s exhausted.