SEGGER compiler

From SEGGER Wiki
Revision as of 13:08, 31 May 2024 by BiancaS (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

The SEGGER Compiler is based on the LLVM infrastructure and shares exactly the same front-end with Clang (interpretation of C/C++ language), but contains an improved back-end for code generation and optimization for 32-bit ARM CPU's. It uses modified and additional methods for code optimization and is especially useful for small embedded systems, where code size is often an issue. The focus is on Thumb-2 instruction optimization, where the SEGGER Compiler in average achieves

  • ~9% code size reduction compared to vanilla Clang.
  • ~14% code size reduction compared to gcc.
  • ~6% speed improvement compared to Clang and gcc.

Details can be found in the compiler manual: Compiler Manual