Open Source C/C++ Embedded Toolchains Using LLVM
summary
Shows a usable open-source LLVM-based embedded toolchain built with clang, lld, and picolibc that targets Cortex‑M and has Linux/Windows binaries but lacks a finished libc and proper data-driven multilib or specs support so users must supply many per-target builds and config files. Demonstrates low-overhead UBSan trap mode and a low-cost CFI variant that runs without LTO, explains why ASan/MSan need virtual memory, and warns LTO breaks linker-script section control until output-section awareness lands.
AI-written summary · about
chapters (12)
- 0:00Introduction and welcome
- 1:05Embedded vs hosted toolchains
- 3:54Why use LLVM for embedded
- 6:03Sanitizers in embedded systems
- 13:07LLVM project components
- 14:13Building an LLVM toolchain
- 16:22Multilib and specs files
- 19:52Link time optimization
- 22:41Clang toolchain classes
- 24:27Clang for Linux kernel
- 25:31Ongoing work and future plans
- 28:51Q&A session
related talks
47mUsing Picolibc in Embedded Systems
47mUsing Picolibc in Embedded Systems
12mLibc++ on Linux - using the example of Oniro
01h 03mCLANG + C2 - Engineering/Futures/Measurements
36muClibc Today: Still Makes Sense
57mModern Linux C++ debugging tools - under the covers
55mUsing Freestanding C++ for C++17 in Shellcode, UEFI, Embedded & Unikernels
05mModern C++ in Embedded OS Dev
