Re:Formatting Is Unreasonably Expensive for Embedded Rust
by codebje on Monday December 09, 2019 @03:31PM
(#21746188)
When using FreeRTOS tasks, any use of printf() requires a substantially larger stack allocation per task. But I don't recall now any massive blow-out in binary size.
[ Parent
| on HN ]
Re:Formatting Is Unreasonably Expensive for Embedded Rust
by Gibbon1 on Monday December 09, 2019 @04:13PM
(#21746646)
Yeah canned printf is really stack heavy if I remember. A solution is to have one thread that handles printf. Biggest issue I've run into with printf at least in C is calling it tends to be expensive.