Introduction to System Programming Introduction Types of software

  • Slides: 10
Download presentation
Introduction to System Programming

Introduction to System Programming

Introduction • Types of software – System software: • e. g. Scientific calculations, database

Introduction • Types of software – System software: • e. g. Scientific calculations, database applications, etc. – Application software e. g. – – – operating system compiler assembler Linker Loader Debugger etc. SVBIT 2

Overview of System software • What is Operating System? • Modules of Operating System

Overview of System software • What is Operating System? • Modules of Operating System – Process Management – Resource Management – Memory Management – Secondary storage Management – User Management – Security Management SVBIT 3

Compiler • • • Lexical Analysis Syntax Analysis Semantic Analysis Intermediate Code Generation(three add.

Compiler • • • Lexical Analysis Syntax Analysis Semantic Analysis Intermediate Code Generation(three add. code) Code Optimization – Common sub expression elimination – Dead code elimination – Loop optimization • Target Code Generation(m/c lang. ) • Error Handling and Recovery • Symbol table Management SVBIT 4

Assembler • Covert assembly language program to machine code Error messages Assembly language Program

Assembler • Covert assembly language program to machine code Error messages Assembly language Program Assembler Object Module • Cross Assembler SVBIT 5

Linker Libraries Object module #1 Object module #2 Error messages Linker Object module #n

Linker Libraries Object module #1 Object module #2 Error messages Linker Object module #n Executable module SVBIT 6

Loader Shared Libraries One executable file Loader Binary Image at an absolute address •

Loader Shared Libraries One executable file Loader Binary Image at an absolute address • Process of bringing an executable file produced by the linker from secondary storage in to primary storage. SVBIT 7

Debugger • • Grammatically correct programs. Satisfy syntactic and semantic requirement. Sets breakpoint Can

Debugger • • Grammatically correct programs. Satisfy syntactic and semantic requirement. Sets breakpoint Can check the values of variables at certain points. SVBIT 8

Start Distribute in to module Module 1 Program development flow Module 2 Compiler/ Assembler

Start Distribute in to module Module 1 Program development flow Module 2 Compiler/ Assembler Module 3 Compiler/ Assembler Object 1 Module n Compiler/ Assembler Object 3 Object 2 Object n Linker Lib. Module Executable Modules Loader Shared Lib. Process in memory yes Debugger Error SVBIT No Stop 9

END SVBIT 10

END SVBIT 10