Skip to content

Commit

Permalink
doc: Update picolibc section in 3.5 migration guide for 1.8.4
Browse files Browse the repository at this point in the history
Picolibc 1.8.4 includes more control over printf capabilities, document
those in the migration guide.

Signed-off-by: Keith Packard <keithp@keithp.com>
  • Loading branch information
keith-packard committed Sep 21, 2023
1 parent 8c4f54b commit 0653d41
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions doc/releases/migration-guide-3.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,15 @@ there are a few side effects to be aware of when migrating to Picolibc.
compiler will now warn about declarations of `main` which don't conform to
the Zephyr required type -- ``int main(void)``.

* Picolibc has three different printf/scanf variants, 'float', 'integer',
and 'minimal. 'float' offers a complete printf implementation with exact
floating point in decimal and hexidecimal formats, full integer support
including long long, C99 integer size specifiers (j, z, t) and POSIX
positional arguments. 'integer' mode removes float support, 'minimal'
mode also removes support for format modifiers, positional arguments and
long long integers. Building the library as a module allows finer
control over the feature set provided at each level.

* Picolibc's default floating point input/output code is larger than the
minimal C library version (this is necessary to conform with the C
language "round trip" requirements for these operations). If you use
Expand Down

0 comments on commit 0653d41

Please sign in to comment.