130 likes | 325 Views
THE C COMPILATION STEPS. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Source Code. C Compilation Steps. FILE prog.c. OPTION .
E N D
C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Compilation Steps FILE prog.c OPTION
C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Object Library Object Library Object Library Object Library Object Library Object Library Object Library #include files Object Library Object Library Object Library C Compilation Steps Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor FILE prog.c OPTION
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Object Library Object Library Object Library Object Library Object Library Object Library #include files Object Library Object Library Object Library Object Library C Compilation Steps Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor FILE prog.c prog.i OPTION -E
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Object Library Object Library Object Library #include files Object Library Object Library Object Library Object Library Object Library Object Library Object Library C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor FILE prog.c prog.i OPTION -E
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Assembly Language code Assembly Language code Assembly Language code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Object Library Object Library Object Library #include files Object Library Object Library Object Library Object Library Object Library Object Library Object Library C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor FILE prog.c prog.i prog.s OPTION -E -S
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Assembly Language code Assembly Language code Assembly Language code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library #include files C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor FILE prog.c prog.i prog.s OPTION -E -S
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Assembly Language code Assembly Language code Assembly Language code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library Object Library #include files C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Assembly Language code Assembly Language code Object Code FILE prog.c prog.i prog.s prog.o a.out OPTION -E -S -c
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Assembly Language code Assembly Language code Assembly Language code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Object Library Object Library Object Library Object Library Object Library #include files Object Library Object Library Object Library #include files Object Library Object Library Object Library C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Link Editor Link Editor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Assembly Language code Object Code Assembly Language code FILE prog.c prog.i prog.s prog.o a.out OPTION -E -S -c
Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Expended C Source Code Assembly Language code Assembly Language code Assembly Language code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code C Source Code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Assembly Language code Object Library Object Library Object Library Object Library Executable code Object Library #include files Object Library Object Library Object Library Object Library Object Library Object Library #include files C Compilation Steps C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler C Compiler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Assembler Link Editor Link Editor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Preprocessor Object Code Assembly Language code Assembly Language code FILE prog.c prog.i prog.s prog.o a.out OPTION -E -S -c
C Preprocessor File inclusion Macro Substitution Conditional inclusion • Link editor/ Loader Resolve function references Search the C standard library Search other specified libraries
Lab session • Compile C code with appropriate options to see the file generated at each compilation stage. • Check the assembly code generated for the Sparc processor and the Intel processor.