Look, Ma, No OS: Verifying a Freestanding Standard Library Implementation November 25, 2026 by Colin Rullkotter Software developers like you and me are used to the luxury of working with a general-purpose operating system (GPOS) like Linux or Windows. Suppose we want to open a file from an SSD in a (so-called) low-level language like C. We #include <stdio.h>, call fopen(), get back a pointer to a nice opaque abstraction like a FILE, and get on with our lives. We don’t worry about, and indeed the library can’t directly access, the actual physical storage medium. If we looked inside the GNU implementation and traced down the call stack, we’d eventually find an architecture-specific assembly wrapper which invokes the OS kernel. The OS (via a driver) is what actually pings the drive to perform the chip-level operations to retrieve the data. Unfortunately, not all users have these resources. In mission-critical industries, a full-featured OS may be impractical for several reasons. Safety often demands an extremely high degree of predictability. In a GPOS, this predictability is undermined by task scheduling, CPU load balancing, memory swapping and other interventions by the runtime. This is unacceptable when a few extra milliseconds of latency in critical actions such as the deployment of an airbag could be fatal. Also, safety-critical devices may, by necessity, have a lower power budget than would be required to support a GPOS: you can’t, after all, connect your pacemaker to the wall outlet. Therefore, running on a lightweight RTOS (real-time operating system, with minimal device support and memory protection), or with no OS at all (bare metal), is the norm. As we’ve established, for the standard library to perform file I/O, or a slew of other operations, requires an OS. For this reason, the language standard divides library environments into two types: hosted (full functionality) and freestanding (functionality that does not ultimately rely on system calls to an OS). In all C and C++ versions, the standard has codified which functions must be provided in a freestanding implementation. It’s worth noting that this definition is a floor, not a ceiling: if an implementation is able to fulfil the contract of a function without recourse to OS system calls, they are at liberty to do so. However, failure to include a function which is designated as freestanding means that the implementation is non-conforming. When qualifying a freestanding library implementation for use in safety-critical applications, tests that rely on hosted functionality will, of course, generally tend to fail. Given that most of the standard library functions are not required in freestanding, running a comprehensive library test suite against such an implementation will generate a huge amount of noise. In the SuperTest suite, we provide predefined test sets: lists which collect all tests pertaining to a particular language or library feature that users may want to test in isolation: wide characters or threads, say. We leverage that same system to gather together those tests which are not required to pass in freestanding. We have also made sure that our tests have a minimal footprint, in terms of both resource usage and system support requirements. They can run on any bare-metal freestanding target, without the amenities of an OS. Until C23, the freestanding set of functions was defined by a collection of headers. For C23, the standards committee included more functions that do not rely on OS functionality, but which do not constitute full headers. The C23 freestanding library now requires a more fine-grained definition than before. In our latest release, Van Gogh, we additionally provide a new test set to reflect the expanded freestanding requirements mandated by C23, thereby allowing users of that language version to get a clean test report where they can be confident that any failures have genuine implications for qualification.