29
1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college, Nagpur

1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Embed Size (px)

Citation preview

Page 1: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

1

Presentation on

System Programming Course Code:- CM5G

Subject Teacher :- Mr. Pankaj M Ughade

Dept :- Computer Technology

G. H. Raisoni polytechnic college, Nagpur

Page 2: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Lecture No.: 1

Page 3: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

UNIT 01: Introduction to System

Programming

Page 4: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

What is System?

◦ System is the collection of various components.◦ Ex:- College is a system

What is Programming?

◦ Art of designing and implementing the programs.

Introduction

Page 5: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Software is collection of many programs. Two types of software:

◦ System software-These programs assist general use

application programs.Ex:- Operating System , Assembler etc.

◦ Application software- These are the software developed for the

specific goal.

What is Software ?

Page 6: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

System Program:

◦ “These are programs which are required for the effective execution of general user programs on computer system.”

System Programming:-

◦ “ It is an art of designing and implementing system programs.”

Page 7: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Assembler Compiler Macros and Microprocessors Linkers And Loader

Components of System Software

Page 8: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

These are the system programs that converts the source program into computer understandable language.

Types of translators-◦ Single Pass translator◦ Multi Pass translator

Translators

Page 9: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Assembler:- These are the system programs which will

automatically translate the assembly language program into the machine language program.

Translators

Assembler

Database

Source programAssembly Lang. Prog.

Target program /M/C Lang. Prog.

Page 10: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Lecture No.: 2

Page 11: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Complier:- These are the system programs which will

automatically translate the High level language program into the machine language program.

Translators

Compiler

Database

Source programHigh level Lang. Prog.

Target program /M/C Lang. Prog.

Page 12: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Cross Assembler:- These are the system programs which will

automatically translate the Assembly Language program compatible with M/C A, in to the machine language program compatible with M/C A, but the underlying M/C is M/C B

Translators

Cross AssemblerSource programAssembly Lang. Prog. Compatible with M/C A

Target program /M/C Lang. Prog. Compatible with M/C A

M/C B

Page 13: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Cross Compiler:- These are the system programs which will

automatically translate the HLL program compatible with M/C A, into the machine language program compatible with M/C A , but the underlying M/C is M/C B

Translators

Cross CompilerSource programHLL Prog. Compatible with M/C A

Target program /M/C Lang. Prog.

M/C B

Page 14: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Interpreter◦ It is the language translator which execute source

program line by line with out translating them into machine language.

Types of Interpreter◦ Pure Interpreter

In this case no preprocessing is required on source program before an interpretation starts.

Some preprocessing is required on source program before an interpretation starts.

Translators

Page 15: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Lecture No.: 3

Page 16: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

A Loader is system program that place the object program into main memory and prepares it for execution.

Basic functions of loader◦ Allocation◦ Linking ◦ Relocation◦ Loading

Loader

Page 17: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Compile-and-go Loader Relocating Loader Direct Linking Loader Absolute Loader General Loader Dynamic Loader

Types of Loader

Page 18: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Macro◦ Macro is a single line abbreviation for a group of

instruction.

MACRO --------Start of definition INCR -------- Macro name

A 1,DATAA 2,DATA Sequence of instructions to

be abbreviated.A 3,DATAMEND -------- End of definition

Macro & Macro processor

Page 19: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Linking◦ The Process of merging many object modules to

form a single object program is called as linking.

• Linker The Linker is the software program which binds

many object modules to make a single object program.

Linking and Linker

Page 20: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Lecture No.: 4

Page 21: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

The basic need of system software is to achievethe following goals :-

To achieve efficient performance of the system.

To make effective execution of general user program.

To make effective utilization of human resources.

To make available new, better facilities.

Goal Of System Software

Page 22: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

It is the collection of system programs which acts as an interface between user and the computer and computer hardware.

The purpose of an operating system is to provide an environment in which a user can execute programs in a convenient manner.

Evolution of System Software & Operating System

Page 23: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

File handling and management. Storage management (Memory

management). Device scheduling and management. CPU scheduling. Information management. Process control (management). Error handling Protecting itself from user & protecting user

from other users.

Functions of Operating System

Page 24: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Foundation of System programming, machine Structure

File systemI/O

Program LibrariesSchedule

rDevice

managementMemory

Management

Text EditorsLoader Searching And Sorting

Debugging aids

AssemblersCompilers Micro Processor

Application Programming

People

Fig: Foundation Of System programming

Page 25: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Machine Structure

Memory

I/O Processor

I/O Processor CPUCPU

Card Read/Punch

Disk or

Drum

PrinterTeletype

Fig: General hardware Organization of Computer system

Page 26: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

We begin by sketching the general hardware organization of a computer system .

Memory is the device where information is stored.

Processors are the devices that operate on this information.

Each one or zero is a separate binary digit called a bit.

Page 27: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

Bits are typically group in units that are called words, characters, or bytes.

Page 28: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

1. What is system software? (Sum-10,11)

2. Define the system software? (Sum-10,11)

3. List the various application of system software. (Sum-10,11,12)

4. Write note on component of system software? (Sum-10,12,13, Win-12,13,)

5. Explain the foundation of system programming ? (Sum-12,13, Win-12,13,)

Important Questions

Page 29: 1 Presentation on System Programming Course Code:- CM5G Subject Teacher :- Mr. Pankaj M Ughade Dept :- Computer Technology G. H. Raisoni polytechnic college,

1. Explain the evolution of system software. (Sum-13, Win-13)

2. Define the terms- 1. Compiler2. Assembler3. Loader4. Macros (Sum-10,12,13, Win-12,13,)