Better Firmware with LLVM/Clang

The article discusses the use of LLVM and Clang in embedded development, citing the benefits of adding a Clang build target to projects. It covers how to leverage static analysis and memory leak detection in an example project running FreeRTOS on the NRF52840. The article also explains the history of GCC and Clang and highlights LLVM’s modular architecture. Notably, it explores the use of Clang’s Thread Safety Analyzer for identifying deadlocks and race conditions in multi-threaded applications. The author provides detailed instructions on installing LLVM/Clang and implementing compiler attributes for custom functions. (Word count: 105)

https://interrupt.memfault.com/blog/arm-cortexm-with-llvm-clang

To top