This is an old revision of the document!
Compiler API
Introduction
Here's the proposed compiler interface for the system and for people.
User Interface
Users control which compiler is used based on a few variables.
| Variable | Values | Meaning |
| SYSTEM_COMPILER | gcc or clang | The class of compiler that is installed as ${CC} |
| GCC_VERSION | 421 | gcc 4.2.1 – The version of the gcc compiler being used |
| CLANG_VERSION | 311 | clang 3.1.1 – The version of the clang compiler installed |
| EXT_COMP | armv6-freebsd- or /usr/local/fred/bin/ | Used to specify the location of the compiler (but not what kind of compiler it actually is). If this is set, then the external compiler is used. Otherwise the bootstrap default system compiler is used. The external compiler is really the entire external toolchain. |