Skip to content

Commit

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

Signed-off-by: Keith Packard <[email protected]>
  • Loading branch information
keith-packard authored and cfriedt committed Nov 20, 2023
1 parent 6c95f23 commit a4a8120
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions doc/releases/migration-guide-3.5.rst
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,16 @@ C Library
compiler will now warn about declarations of `main` which don't conform to
the Zephyr required type -- ``int main(void)``.

* Picolibc has four different printf/scanf variants supported in Zephyr,
'double', 'long long', 'integer', and 'minimal. 'double' 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. 'long
long' mode removes float support, 'integer' removes long long support
while 'minimal' mode also removes support for format modifiers and
positional arguments. 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 a4a8120

Please sign in to comment.