|M1750 Ada Technical Summary: For mission-critical applications|
|Prev||Chapter 6. Cross-Compiler and Run-Time Interfacing||Next|
Technically, the crucial asset of the GCC is its mostly language-independent, target-independent code generator. It produces code of excellent quality both for CISC machines such as the Intel and Motorola families, as well as RISC machines such as the IBM RS/6000. The machine dependencies of the code generator represent less than 10 per cent of the total code.
To add a new target to GCC, an algebraic description of each machine instruction must be given using a register-transfer language. Most of the code generation and optimization then uses the RTL, which GCC maps when needed into the target machine language. Furthermore, GCC produces high-quality code, comparable to that of the best compilers.