Clinging to Clang
summary
Clang serves as a usable cross‑compiler for Embedded Linux with concrete work: WebKit builds in 2297s vs 2838s (clang vs GCC), OpenEmbedded gets a meta‑layer called meta-clang, and the SDK exports CLANG_CC/CLANG_CXX. Clang provides clang-tidy/clang-format/static analyzer, compiler-rt, libc++/libc++abi and libunwind alternatives, and sanitizers; about 80–90% of packages compile, but Linux kernel and full glibc builds still require patches or a hybrid GCC/Clang toolchain.
AI-written summary · about
chapters (22)
- 0:00Introduction
- 1:43Clang
- 2:50Goals
- 9:30Resources and speedy compile
- 11:08Who uses Clang
- 12:12GCC
- 13:26Build sequence
- 15:19Cross compiler
- 17:03Cross toolchain
- 19:50Linux Kernel
- 21:07Chromium OS
- 22:01MetaClang
- 22:58Building Clang
- 23:27NonClang
- 26:28Images
- 28:02SDK Example
- 29:10Clang Static Analyzer
- 32:38C Runtime
- 36:01Sanitizer
- 36:45libanmind
- 37:14binary
- 38:26limitations
related talks
19m"ClangBuiltLinux: What's Next?"
45mCross compilation with clang and LLVM tools.
19mClangBuiltLinux: What's Next?
54mGCC/Clang Optimizations for Embedded Linux
37mToolchain Options in 2023: What's New in Compilers and Libcs?
01h 03mCLANG + C2 - Engineering/Futures/Measurements
29mBuilding the Linux kernel with Clang
49mLLVMLinux: The Linux Kernel with Dragon Wings
