Lecture-2 - 3 (Pic) .PDF 5
Lecture-2 - 3 (Pic) .PDF 5
computer
The compiled programs run faster The Interpreted programs run slower
Most of the Languages use compiler A very few languages use interpreters.
The procedure for turning a program written in C into machine
Language. The process is presented in a straightforward, linear
fashion but you should recognize that these steps are repeated many
times during development to correct errors and make improvements
to the code.
The following are the four steps in this process
1. Writing and Editing the program
2. Compiling the program
3. Linking the program with the required modules
4. Executing the program
Sl. No. Phase Name of Code Tools File
Extension
Executing Programs
To execute a program we use an operating system command, such as
run, to load the program into primary memory and execute it.
Getting the program into memory is the function of an operating
system program known as the loader. It locates the executable
program and reads it into memory. When everything is loaded the
program takes control and it begin execution.
Algorithm – Sequential instructions needed to solve any
problem.
Algorithm is translated into Flowchart and program
according to the requirement.
Problem should be divided into smallest modules possible,
while developing Algorithm.
It is called the Modular approach, which makes the program
more flexible for future modifications.
Algorithm must be written in such a way that they can be
easily converted into computer instructions.
The desired features of an algorithm are:
Each step of the algorithm should be simple.
It should be unambiguous in the sense that the logic is
clear.
It should be effective i.e., it must lead to a unique
solution of the problem.
It must end in a finite number of steps.
It should be as efficient as possible.
Not all procedures can be called an algorithm. An algorithm
should have the following characteristics −
Unambiguous − Algorithm should be clear and unambiguous.
Each of its steps (or phases), and their inputs/outputs should be
clear and must lead to only one meaning.
Input − an algorithm should have 0 or more well-defined inputs.