1 / 12

THE C COMPILATION STEPS

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 .

tonya
Download Presentation

THE C COMPILATION STEPS

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. THE C COMPILATION STEPS

  2. 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

  3. 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

  4. 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

  5. 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

  6. 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

  7. 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

  8. 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

  9. 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

  10. 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

  11. C Preprocessor File inclusion Macro Substitution Conditional inclusion • Link editor/ Loader Resolve function references Search the C standard library Search other specified libraries

  12. 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.

More Related