Compile-time Initialization & Build Library for Composing Modular Firmware
summary
A compile-time library called the Compile-time Initialization and Build (CIB) composes modular embedded firmware by wiring independent components into nexus and main-loop extension points using constexpr and template metaprogramming. Components register callbacks at compile time so initialization work disappears from runtime, producing very small assembly; only a few pointer stubs remain and LTO further inlines and removes them. The demo builds greeting, loop-count, and ID features with zero runtime initialization and is on GitHub.
AI-written summary · about
chapters (5)
- 0:00Start
- 0:22Compile Time Initialization and Build Library
- 0:57Compiler Explorer
- 2:11Informal Greeting
- 2:41Print the Loop Count
related talks
40mPicolibc: A C Library for Smaller Systems
39mRobotics at Compile Time: Optimizing Robotics Algorithms With C++'s Compile-Time Features
42mpicolibc: a C library for small 32-bit systems
01h 31mBetter embedded library interfaces with modern C++
25mCo-operative JIT Compilation for Resource-Constrained Low-Power Coprocessors
01h 00mDealing with Embedded Limitations
32mOpen Source C/C++ Embedded Toolchains Using LLVM
01h 01mMicrocontrollers in Micro-increments...
