Eliminate float printing via mp_printf? #19935
Replies: 3 comments 1 reply
|
Just to check I understand, the change we're discussing would be to change this guard: from Am I following correctly? |
|
Yeah, that's exactly the idea. I should have linked to the relevant ref in my tree: jepler@537e893 This introduces MICOPY_PRINTF_F_FORMAT, disables it by default, and enhances the mp_printf checker to know whether %f and related formats are available or not. |
|
I experimented in circuitpython with using mp_printf to do error logging and it was not at all satisfactory due to missing support for e.g., %z formats... maybe some folks are doing this but they could of course enable a new build option. and we could even add %z behind a flag too. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
It'd save 100+ bytes on some common ports. And with the work in progress compiler plugin (#17556) we can have some confidence there are no uses of it anyway.
All reactions