Steps of a C Program Compilation
• Step 1 – Run the Preprocessor • Deals with #include, #define, #ifndef, …
• Step 2 – Compile C code into Machine Code • Step 2a – Lexical Analysis • Step 2b – Parsing and Semanitic analysis • Step 2c – Creation of Machine Code in Object File
• Step 3 – Create the Executable Files • Linking the Program Object Files with Library Object Files Steps of a C Program Compilation • Step 1 & 2 – Create the Object Files • .o files • created using the –c flag in gcc (“compile only”) • Step 3 – Create the Executable Files • By default, named: a.out • use the –o flag in gcc to call it something other than a.out
Sun | Mon | Tue | Wed | Thu | Fri | Sat |
---|---|---|---|---|---|---|
23 | 24 | 25 | 26 | 27 | 28 | 1 |
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 | 1 | 2 | 3 | 4 | 5 |
Get Free Quote!
284 Experts Online