Intro - To - Programming - PPT Filename UTF-8''intro To Programming
Intro - To - Programming - PPT Filename UTF-8''intro To Programming
Executable program
Output from linker/loader
Machine language program linked with necessary
libraries & other files
Files usually have extension ‘.exe’
A program that pulls other programs together so
that they can run.
Most programs are very large and consist of several
modules.
Even small programs use existing code provided by
the programming environment called libraries.
The linker pulls everything together, makes sure
that references to other parts of the program (code)
are resolved.
• Steps that the computer goes through to run a program:
Memory
Machine language
program
(executable file)
Input Data Data entered CPU
during execution
Computed results
Program Output
Steps taken by the CPU to run a program
(instructions are in machine language):
1. Fetch an instruction
2. Decode (interpret) the instruction
3. Retrieve data, if needed
4. Execute (perform) actual processing
5. Store the results, if needed
Syntax Errors:
Errors in grammar of the language
Runtime error:
When there are no syntax errors, but the program can’t
complete execution
▪ Divide by zero
▪ Invalid input data
Logical errors:
The program completes execution, but delivers incorrect
results
Incorrect usage of parentheses
Source Assembly
Program Compiler Language