6
www.eshikshak.co.in

Program development cyle

Embed Size (px)

DESCRIPTION

Program Development Cylce

Citation preview

Page 1: Program development cyle

www.eshikshak.co.in

Page 2: Program development cyle

Program Development Cycle● Define the problem

○ Careful reading of the problem.○ We are not focusing on solution part here.

● Analyze the problem○ Determine all possible solutions and select the

best from them.○ We can break whole problem into sub problems.

● Design the solution○ Create an outline on how the program should

execute.○ Expand it into steps (algorithm) which describe

the order of tasks to be carried out.

www.eshikshak.co.in

Page 3: Program development cyle

9 February 2012

Program Development Cycle (Cont)● Code the program

○ Begins only after we have clear idea about algorithm of solution.

○ We can use appropriate language and editor to write the code.

● Compilation of code○ Find the syntax and semantic errors.○ Compiler or Interpreters of corresponding

language can be used.○ If error occurs, we need to change the code to

solve errors.○ After successful compilation, object code is

generated that a machine can understand.

www.eshikshak.co.in

Page 4: Program development cyle

9 February 2012

Program Development Cycle (Cont)● Linking of object code

○ Linker links the libraries and object code then puts all objects into correct order in the executable.

○ If error occurs during linking, it might be a problem in writing code of linking.

● Loading of program○ Loader loads the program into main memory

and control is passed to processor.○ Loading includes reading an executable,

checking permission, initializing registers.

www.eshikshak.co.in

Page 5: Program development cyle

9 February 2012

Program Development Cycle (Cont)● Program execution and testing

○ Execution of program is done by processor.○ Debugger can be used to trace the error.○ We verify the output. If the desired output is not

achieved, we need to revice the whole process.

www.eshikshak.co.in

Page 6: Program development cyle

9 February 2012

Program Development CycleProblem

Analysis

Algorithm Design

Coding

Compilation

Linking

Loading

Execution

Results

Library Error

Error

Error

www.eshikshak.co.in