Function Of Compilers And Interpreter And Linkers


 *Compiler*
▪Translates the whole program as one complete unit
▪Creates an executable file
▪Is able to report on a number of errors in the code after compilation
▪Does not need to be present in order to run the code
▪Can optimise source code to run as fast or as efficiently as possible.

*Interpreter*
🔹Translates each line of source code into an intermediate stage and then
executes that line/statement
🔹Reports on errors as lines of source code are entered
🔹Only a few lines of source code needs to be in memory at any one time
🔹Some interpreters execute code within a 'virtual machine'

*Linkers*

🔺Takes one or more object files and combines them into a single executable file.

Comments