Clang
5 articles in the last 30 days.
-
clice v1.0 Released
The first stable release of clice, a C/C++ language server built on LLVM/Clang and written in C++23 with coroutines and named modules. It follows 1,000 commits and about four months of nightly alpha testing.
-
Pointer Provenance in Rust vs C++
Explains pointer provenance as the compiler's tracking of which allocation a pointer derives from, and shows how to inspect it in LLVM IR, using a Clang optimization example.
-
Pointer Provenance in Rust vs C++
Explains pointer provenance as the compiler's tracking of which allocation a pointer may access. Using Clang and LLVM IR, it shows why an opaque call cannot modify a local variable through an unrelated pointer.
-
Making SIMD Code Scale to Any Vector Width
Shows how to transpose vec3/vec4 math into SIMD lanes so N dot products and frustum culling scale to 8 or 16 wide, with benchmarks on a Ryzen 7 5800 under Clang.
-
Attention people who think UB is fine
Compiler output from GCC and Clang shows that undefined behavior can run code that was never called, and that a null pointer write is not guaranteed to segfault. The post explains why.