3 Preprocessing
3 Preprocessing
C PREPROCESSOR
C Preprocessor
# pragma Directive
b) If you are to alter any of these steps, then you would know
how to do it.
Linker and Loader
Linker and loader are the utility programs that play a major role
in the execution of a program.
The source code of program passes through compiler, assembler,
linker and loader in the respective order before execution.
The source program is converted to object program by assembler.
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
21
Cont…
The steps mentioned in figure in detail.
Cont…
Figure summarizes the role played by each program
during the build process.
Csharp code compilation process
When you run the C# compiler, it takes your code as an
input, does some processing, and then outputs your
program in intermediate language (IL) code which is saved
in *.exe or *.dll files.
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
24
Csharp code compilation process….contd
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
25
Csharp code compilation process….contd
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
26
Csharp code path
The path your code takes from being written to being run
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
27
Translation Hierarchy
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
28
Contd…Order in which source loads to memory
Faculty of Computing and Informatics, JIT, Jimma University, Jimma, Oromia, Ethiopia
29
THANK YOU