leaflabs / libmaple

[INACTIVE] C and C++ library for STM32 ARM Cortex-M3 development boards.
http://leaflabs.com/docs/libmaple.html
Other
304 stars 218 forks source link

snprintf uses 23kb #6

Open Ixox opened 13 years ago

Ixox commented 13 years ago

Hello,

I've noticed, that since the last Print.cpp rewrite, the usage of snprintf() make the final binary 23kb bigger. See : http://forums.leaflabs.com/topic.php?id=680 For more info,

Thanks, Xavier

mbolivar commented 13 years ago

Hi Xavier,

We wanted to use snprintf because printing floating point numbers is non-trivial to get right, and the old implementation was very naive.

The extra bloat is an issue, though. We'll figure something out.

By the way, thanks for using the bleeding-edge version of libmaple! It's extremely useful and encouraging to get rapid feedback on changes we make.

Best, Marti