Está en la página 1de 1

Phases of C program 1.

Edit phase Typing of the source code using any text editor to code the program 2. Preprocess phase Inclusion of the header files or text substitution Some errors may be determined or detected here such as included files that do not exist or invalid use of preprocessor directives Before compilation

5. Load Phase Before a program can be run Must reside at the primary memory of a computer The loader loads the computer program in the computers memory 6. Execute Phase Happens automatically once the program is loaded in memory. Remains at this phase until it stops executing May also be abnormally terminate when illegal operation is performed by executing program C run time errors

Stdio.h printf Scanf #include <stdio.h> Main() {

Header

}
3. Compile phase Translation of pre processed source code to an object code 4. Link Phase Combines all compiled object codes and libraries then links them together to generate an executable code Linking errors may occur at this phase especially when functions definitions are missing.

También podría gustarte