Compilers

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:

StepDescription
PreprocessingCombining all the source code from multiple files into 1 source code file
TranslationChecking 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.
LinkingCombining 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. 

One thought on “Compilers

Leave a reply to Translation (Program Translation During the Compilation process) – Island Class Cancel reply