newlib-nano heap requirements
This is a follow-up question to https:/
It is stated there printf with newlib-nano requires a "tiny" initial malloc to setup libc structures.
Seeing this I expected, on my cortex-m3 system, to end up with tens of bytes, maybe 100 at most, reserved.
I recently gave arm embedded (4.7 2013_q1 from linaro's website) with the newlib nano a try.
I followed these instructions to enable the nano profile : https:/
At runtime, placing a breakpoint on my _sbrk implementation shows that two allocations are initially made.
The first one is 436 Bytes big, while the second one is 1032 Bytes, so I end up with roughly 1.5K being allocated for one printf.
That's definitely not something I would have called tiny, so is this the expected size ?
Thank you,
Regards,
Florian
Question information
- Language:
- English Edit question
- Status:
- Solved
- Assignee:
- No assignee Edit question
- Solved by:
- chengbin
- Solved:
- Last query:
- Last reply: