---
title: "C library"
canonical_url: https://developer.repebble.com/pebbleos/docs/libraries/c/
last_updated: 2026-11-24
sdk_version: 4.44
---
# C library

Source: https://developer.repebble.com/pebbleos/docs/libraries/c/

PebbleOS links against a standard C library chosen at build time. `lib/c` connects it to the kernel: its locks are kernel mutexes, its heap is the kernel’s, as it may not grow one of its own, and `assert()`, like the assertions of the [utilities](https://developer.repebble.com/pebbleos/docs/libraries/util.md), logs and stops the system. With `CONFIG_CONSOLE_STDOUT`, `printf()` writes to the console.

| 

 | 

 |
| --- | --- |
| 

Directory

 | 

`lib/c`

 |
| 

Kconfig

 | 

C library choice, always built

 |

## C libraries

| 

C library

 | 

Kconfig

 |
| --- | --- |
| 

Picolibc, the default: smallest, from the toolchain or `third_party/picolibc`

 | 

`CONFIG_LIBC_PICOLIBC`

 |
| 

Newlib, complete but largest

 | 

`CONFIG_LIBC_NEWLIB`

 |
| 

Newlib nano, with a C99 `printf` linked ahead of its own

 | 

`CONFIG_LIBC_NEWLIB_NANO`

 |
| 

The host’s, on native boards

 | 

`CONFIG_LIBC_HOST`

 |

Generated from PebbleOS [12b6c531f](https://github.com/coredevices/pebbleos/commit/12b6c531f9e0c2f39fe4e9bb2886314697128f08). This page is maintained in the pebbleos repository: [docs/libraries/c.md](https://github.com/coredevices/pebbleos/blob/12b6c531f9e0c2f39fe4e9bb2886314697128f08/docs/libraries/c.md).
