Compilers are tools used to produce executable code from source code.
Compilers process code through many stages, but it can be thought of as 3 main steps:
| Step | Description |
| Preprocessing | Combining all the source code from multiple files into 1 source code file |
| Translation | Checking the source code (produced from the preprocessing stage) for errors. If errors are found, the entire compilation process is halted and error messages generated, otherwise the source code is translated into object code. |
| Linking | Combining the generated object file to other dependencies to form a stand alone executable. (e.g for a “hello world” c program at the console, the main object code of a would be combined with object code for output to the console to produce a single executable file.) |
© 2024 Vedesh Kungebeharry. All rights reserved.
[…] This note continues from: Compilers […]
LikeLike