Chapter 5. C Compiler Retargeting

Rainer Leupers

Compilers translate high-level language source code into machine-specific assembly code. For this task, any compiler uses a model of the target processor. This model captures the compiler-relevant machine resources, including the instruction set, register files, and instruction scheduling constraints. While in traditional target-specific compilers, this model is built-in (i.e., it is hard-coded and probably distributed within the compiler source code), a retargetable compiler uses an external processor model as an additional input that can be edited without the need to modify the compiler source code itself (Fig. 5.1). This concept provides retargetable compilers with high flexibility with regard ...

Get Customizable Embedded Processors Design Technologies and Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.