Computer Languages are always classified into three Categories
- LowLevel Languages
- Middle Level Languges
- High Level Languages
Low Level means language which is understandable by machine that is binary language ( 0's and 1's)
Middle Level means Assembly level which is coded as pseudo code (ADD 10,20) where ADD is pseudo code that represents the Addition Action
Process of Compilation
What is Compilation or Action of Compiler?
A Compiler is used to convert from high level language to the machine language.
During Compilation if there is an error(bug) means it indicates it to us. So we can debug(Correct Errors) to make successful compilation.
After Compiled Successfully you can execute that program.
C Langugae Compilation Model
Source Program
|
Pre Processor
|
Compiling
|
Executable Code
|
Compiling
Linker-------------------- |
Object Code|
Executable Code
Here in the above Process when you a compile a source C Program, Pre Processor directives will be executed and Program is compiled. During Compiling the Program will link with library file to share the function declared in the libraries and the source code ( firstpgm.c ) will be Converted to (firstpgm.obj) which is called as object code.When the object code is created you are ready to create an executable file for the program to make "firstpgm.exe"