Get the latest tech news

Comparison of C/POSIX standard library implementations for Linux


A project of Eta Labs. The table below and notes which follow are a comparison of some of the different standard library implementations available for Linux, with a particular focus on the balance between feature-richness and bloat.

Future directions for this comparison include detailed performance benchmarking and inclusion of additional library implementations, especially Google's Bionic and other BSD libc ports. glibc's bad performance could be fixed trivially by removing the code that disables the best optimization for needles shorter than 32 bytes; with this change it should match or slightly outperform musl. "Lightweight headers" are roughly the opposite, written from scratch to match the C and POSIX standards, with minimal nested inclusion and preprocessor conditionals.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of Linux

Linux

Photo of comparison

comparison

Photo of POSIX

POSIX

Related news:

News photo

Bcachefs, Btrfs, EXT4, F2FS & XFS File-System Performance On Linux 6.15

News photo

Linux Lands Fix For Some TLB Flushes Being Inadvertently Skipped

News photo

Linux Drops Support For 486 and Early Pentium Processors