picolibc: a C library for small 32-bit systems
summary
A compact C library combines newlib math/string code with a tiny AVR-derived stdio to target 32-bit embedded cores, dropping newlib’s libgloss and buffering to save RAM. File objects are 20 bytes vs ~8 KB in newlib; printf has selectable int/float/double variants that reduce footprints (example: int-only 2 KB, float-only 8 KB, float+double ~13 KB). TLS is reworked to use the RISC‑V thread pointer and linker-script init. Validation runs 74,000 tests × 30 RISC‑V/ARM variants under QEMU with semi-hosting; examples boot and pass.
AI-written summary · about
chapters (16)
- 0:00Introduction
- 0:42Embedded C libraries
- 2:06C libraries for small systems
- 7:30New Lib
- 9:20PicoLibc
- 10:57IO
- 12:52Printf
- 14:29Float only
- 16:18Size
- 17:22Threadlocal
- 21:55Running applications
- 22:53Semihosting
- 30:52Compile
- 33:01Linker script
- 33:26How big is it
- 34:31Demo
related talks
40mPicolibc: A C Library for Smaller Systems
47mUsing Picolibc in Embedded Systems
47mUsing Picolibc in Embedded Systems
46molibc: Another C Runtime Library
01h 00mDealing with Embedded Limitations
36muClibc Today: Still Makes Sense
32mOpen Source C/C++ Embedded Toolchains Using LLVM
01h 31mBetter embedded library interfaces with modern C++
