SlideShare a Scribd company logo
1 of 14
TOPIC
INTRODUCTION TO
SYSTEM
PROGRAMMING
Presented by:-
Ms. Sonali Kharade
Assistant Professor, Computer Science Department
Introduction
 A system programming is a program which helps to execute user’s program
effectively on a computer system.
 Computer software system is classified into two categories i.e. System
program and Application program.
1. System program
2. Application program
Difference between System software and Application software
Sr. No. System Software Application Software
1.
System software is used for operating
computer hardware.
Application software is used by user to
perform specific task.
2.
System software's are installed on the
computer when operating system is
installed.
Application softwares are installed
according to user’s requirements.
3.
In general, the user does not interact
with system software because it works
in the background.
In general, the user interacts with
application software's.
4.
System software can run
independently. It provides platform
for running application softwares.
Application software can’t run
independently. They can’t run without
the presence of system software.
5.
Some examples of system softwares
are compiler, assembler, debugger,
driver, etc.
Some examples of application software's
are word processor, web browser, media
player, etc.
Difference between System and Application programming
Sr. No. System Programming Application Programming
1.
System programming is comprised of
writing programs for assemblers,
compilers, editors etc
Application programming is used for
providing means to facilitate applications
such as management information
system, Ms. Word.
2. Debugging is difficult. Debugging is not difficult.
3. Fault-fixing is not easy, but reliable.. Fault-fixing is easy and reliable.
4.
In system programming, programmer
used to build application. Eg.
Operating System, DBMS etc
In application programming,
programmers build application. Eg.
Website, Ms-Word, video games etc
5.
System programming makes machine
to do work.
Application programming makes system
program to do work.
Elements of programming environment
 Assembler
 Loader and Linker
 Macro preprocessor
 Compiler
 Editor
 Debugger
 Device Drivers
 Operating System
Assembler
 An assembler is a program that converts assembly language into machine code. It
takes the basic commands and operations from assembly code and converts them
into binary code that can be recognized by a specific type of processor.
 An assembler enables software and application developers to access, operate and
manage a computer's hardware architecture and components.
 An assembler is sometimes referred to as the compiler of assembly language. It
also provides the services of an interpreter.
Assembler
Assembly language
program
Machine language
program
Linker and Loader
 A linker combines one or more object files and possible some library code into
either some executable, some library or a list of error messages.
 The task of integrating the program modules together is called linking.
 A loader reads the executable code into memory, does some address translation
and tries to run the program resulting in a running program or an error message
(or both).
Loader
Object program on
secondary storage
Object program in
main memory
Source
program
Executable
program
Compiler Linker
Macro Preprocessor
 Macro provide an easy and efficient solution to be problem of repeatedly needing
the sequence of instruction.
 A preprocessor, generally considered as a part of compiler, is a tool that produces
input for compilers. It deals with macro-processing, augmentation, file inclusion,
language extension, etc.
 The macro preprocessor accepts an assembly language program containing
macro definitions and macro calls and translates into assembly program which
does not contain any macros.
 The entire operating system is written as a series of macro definitions and macro
calls.
Macro
Preprocessor
Assembly language
program with macro
Assembly language
program without macro
Compiler
 A compiler is a program that converts high-level language to assembly language.
Similarly, an assembler is a program that converts the assembly language to
machine-level. Example: Turbo compiler for ‘C language’.
Compiler
High level language
program
Low level language
program (object code)
Interpreter
 An interpreter, like a compiler, translates high-level language into low-level
machine language. The difference lies in the way they read the source code or
input. A compiler reads the whole source code at once, creates tokens, checks
semantics, generates intermediate code, executes the whole program and may
involve many passes. In contrast, an interpreter reads a statement from the input,
converts it to an intermediate code, executes it, then takes the next statement in
sequence. If an error occurs, an interpreter stops execution and reports it. whereas
a compiler reads the whole program even if it encounters several errors.
Source
code
Interpreter Output
Editor
 Editors or text editors are software programs that enable the user to create and
edit text files. In the field of programming, the term editor usually refers to source
code editors that include many special features for writing and editing code.
Notepad, Wordpad are some of the common editors used on Windows OS and vi,
emacs, Jed, pico are the editors on UNIX OS.
Source
code
Editor
Formatted
source code
Debugger
 A debugger program is one that allows the user to view another program line by
line. This allows the user to identify incorrect code and find out how a program
flows.
 A debugger is very useful to find semantic errors in the program. So, it is
necessary as it helps the programmer visualize program flow.
 A debugger is a computer program used by programmers to test and debug a
target program.
 Here’s the debugging process:
1. Reproduce the problem.
2. Describe the bug. Try to get as much input from the user to get the exact
reason.
3. Capture the program snapshot when the bug appears. Try to get all the variable
values and states of the program at that time.
4. Analyse the snapshot based on the state and action. Based on that try to find the
cause of the bug.
5. Fix the existing bug, but also check that any new bug does not occur.
Operating System
 An operating system is the most important software that runs on a computer. It
manages the computer's memory and processes, as well as all of
its software and hardware. It also allows you to communicate with the
computer without knowing how to speak the computer's language. Following are
the function of OS.
o Memory Management.
o Processor Management.
o Device Management.
o File Management.
o Security.
o Control over system performance.
o Job accounting.
o Error detecting aids.
Device Drivers
 Device Drivers are the software through which, the kernel of a computer
communicates with different hardware, without having to go into the details of
how the hardware works. It is a software that controls a hardware part attached to
a computer and allows the computer to use the hardware by providing a suitable
interface.
 Thus, the purpose of device drivers is to allow smooth functioning of the
hardware for which it is created and to allow it to be used with different operating
systems.
 To communicate with any device such as mouse, printer, keyboard, device drivers
are loaded in operating system.

More Related Content

What's hot

Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & LanguagesGaditek
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assemblerBansari Shah
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating systemtittuajay
 
Error Detection & Recovery
Error Detection & RecoveryError Detection & Recovery
Error Detection & RecoveryAkhil Kaushik
 
Timing and control
Timing and controlTiming and control
Timing and controlchauhankapil
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process managementArnav Chowdhury
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating SystemsShweta Shah
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design conceptssrijavel
 
32 dynamic linking nd overlays
32 dynamic linking nd overlays32 dynamic linking nd overlays
32 dynamic linking nd overlaysmyrajendra
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteriaUmaselvi_R
 

What's hot (20)

Assemblers
AssemblersAssemblers
Assemblers
 
Unit 3 sp assembler
Unit 3 sp assemblerUnit 3 sp assembler
Unit 3 sp assembler
 
Programming Paradigm & Languages
Programming Paradigm & LanguagesProgramming Paradigm & Languages
Programming Paradigm & Languages
 
Single pass assembler
Single pass assemblerSingle pass assembler
Single pass assembler
 
file system in operating system
file system in operating systemfile system in operating system
file system in operating system
 
System software
System softwareSystem software
System software
 
MACRO PROCESSOR
MACRO PROCESSORMACRO PROCESSOR
MACRO PROCESSOR
 
Error Detection & Recovery
Error Detection & RecoveryError Detection & Recovery
Error Detection & Recovery
 
Compilers
CompilersCompilers
Compilers
 
Timing and control
Timing and controlTiming and control
Timing and control
 
Ch 4 linker loader
Ch 4 linker loaderCh 4 linker loader
Ch 4 linker loader
 
Instruction code
Instruction codeInstruction code
Instruction code
 
Os unit 3 , process management
Os unit 3 , process managementOs unit 3 , process management
Os unit 3 , process management
 
Loaders
LoadersLoaders
Loaders
 
Process scheduling
Process schedulingProcess scheduling
Process scheduling
 
Introduction to Operating Systems
Introduction to Operating SystemsIntroduction to Operating Systems
Introduction to Operating Systems
 
Fundamental design concepts
Fundamental design conceptsFundamental design concepts
Fundamental design concepts
 
32 dynamic linking nd overlays
32 dynamic linking nd overlays32 dynamic linking nd overlays
32 dynamic linking nd overlays
 
Modules and modularization criteria
Modules and modularization criteriaModules and modularization criteria
Modules and modularization criteria
 
System programming
System programmingSystem programming
System programming
 

Similar to Introduction to system programming

Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating systemsonykhan3
 
SPCC:System programming and compiler construction
SPCC:System programming and compiler constructionSPCC:System programming and compiler construction
SPCC:System programming and compiler constructionmohdumaira1
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpretersshivasdhtsvmic
 
system software and application software, compiler, interpreter & assembler
system software  and application software, compiler, interpreter & assemblersystem software  and application software, compiler, interpreter & assembler
system software and application software, compiler, interpreter & assemblerchetan birla
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution pptKeerty Smile
 
SPOS_UNIT I System Programming and Operating System.pdf
SPOS_UNIT I System Programming and Operating System.pdfSPOS_UNIT I System Programming and Operating System.pdf
SPOS_UNIT I System Programming and Operating System.pdfreshma96176
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxUzma1102
 
Computer system
Computer systemComputer system
Computer systemRajThakuri
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)SURBHI SAROHA
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader ExplainedAdarsh Kr Sinha
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compilerA. S. M. Shafi
 
1.7 selection and use of appropriate software
1.7 selection and use of appropriate software1.7 selection and use of appropriate software
1.7 selection and use of appropriate softwaremrmwood
 

Similar to Introduction to system programming (20)

Computer software and operating system
Computer software and operating systemComputer software and operating system
Computer software and operating system
 
Types of system software
Types of system softwareTypes of system software
Types of system software
 
SPCC:System programming and compiler construction
SPCC:System programming and compiler constructionSPCC:System programming and compiler construction
SPCC:System programming and compiler construction
 
Richa garg itm
Richa garg itmRicha garg itm
Richa garg itm
 
Unit2_1.pdf
Unit2_1.pdfUnit2_1.pdf
Unit2_1.pdf
 
Compliers and interpreters
Compliers and interpretersCompliers and interpreters
Compliers and interpreters
 
computer Unit 6
computer Unit 6computer Unit 6
computer Unit 6
 
Software Concepts Notes
Software Concepts NotesSoftware Concepts Notes
Software Concepts Notes
 
SOFTWARE PARADIGM
SOFTWARE PARADIGMSOFTWARE PARADIGM
SOFTWARE PARADIGM
 
system software and application software, compiler, interpreter & assembler
system software  and application software, compiler, interpreter & assemblersystem software  and application software, compiler, interpreter & assembler
system software and application software, compiler, interpreter & assembler
 
Insight into progam execution ppt
Insight into progam execution pptInsight into progam execution ppt
Insight into progam execution ppt
 
SPOS_UNIT I System Programming and Operating System.pdf
SPOS_UNIT I System Programming and Operating System.pdfSPOS_UNIT I System Programming and Operating System.pdf
SPOS_UNIT I System Programming and Operating System.pdf
 
PPS UNIT 1- R18.docx
PPS UNIT 1- R18.docxPPS UNIT 1- R18.docx
PPS UNIT 1- R18.docx
 
Computer system
Computer systemComputer system
Computer system
 
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
ESSENTIAL COMPONENTS OF COMPUTERS(UNIT 2)
 
Linker and Loader Explained
Linker and Loader  ExplainedLinker and Loader  Explained
Linker and Loader Explained
 
Introduction to compiler
Introduction to compilerIntroduction to compiler
Introduction to compiler
 
System software
System softwareSystem software
System software
 
1.7 selection and use of appropriate software
1.7 selection and use of appropriate software1.7 selection and use of appropriate software
1.7 selection and use of appropriate software
 
Software ppt
Software pptSoftware ppt
Software ppt
 

More from sonalikharade3

SIMULATING A SIMPLE MACHINE (smaco)
SIMULATING A SIMPLE MACHINE (smaco)SIMULATING A SIMPLE MACHINE (smaco)
SIMULATING A SIMPLE MACHINE (smaco)sonalikharade3
 
Phishing Attack Awareness and Prevention
Phishing Attack Awareness and PreventionPhishing Attack Awareness and Prevention
Phishing Attack Awareness and Preventionsonalikharade3
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligencesonalikharade3
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSsonalikharade3
 

More from sonalikharade3 (6)

EDITORS
EDITORSEDITORS
EDITORS
 
SIMULATING A SIMPLE MACHINE (smaco)
SIMULATING A SIMPLE MACHINE (smaco)SIMULATING A SIMPLE MACHINE (smaco)
SIMULATING A SIMPLE MACHINE (smaco)
 
Phishing Attack Awareness and Prevention
Phishing Attack Awareness and PreventionPhishing Attack Awareness and Prevention
Phishing Attack Awareness and Prevention
 
Artificial Intelligence
Artificial IntelligenceArtificial Intelligence
Artificial Intelligence
 
COMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONSCOMPILER DESIGN OPTIONS
COMPILER DESIGN OPTIONS
 
Linker and Loader
Linker and Loader Linker and Loader
Linker and Loader
 

Recently uploaded

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityGeoBlogs
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesFatimaKhan178732
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️9953056974 Low Rate Call Girls In Saket, Delhi NCR
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfSumit Tiwari
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfsanyamsingh5019
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxpboyjonauth
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdfssuser54595a
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docxPoojaSen20
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Educationpboyjonauth
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationnomboosow
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13Steve Thomason
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 

Recently uploaded (20)

Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Paris 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activityParis 2024 Olympic Geographies - an activity
Paris 2024 Olympic Geographies - an activity
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Separation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and ActinidesSeparation of Lanthanides/ Lanthanides and Actinides
Separation of Lanthanides/ Lanthanides and Actinides
 
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
call girls in Kamla Market (DELHI) 🔝 >༒9953330565🔝 genuine Escort Service 🔝✔️✔️
 
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdfEnzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
Enzyme, Pharmaceutical Aids, Miscellaneous Last Part of Chapter no 5th.pdf
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Sanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdfSanyam Choudhary Chemistry practical.pdf
Sanyam Choudhary Chemistry practical.pdf
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Introduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptxIntroduction to AI in Higher Education_draft.pptx
Introduction to AI in Higher Education_draft.pptx
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
18-04-UA_REPORT_MEDIALITERAСY_INDEX-DM_23-1-final-eng.pdf
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
MENTAL STATUS EXAMINATION format.docx
MENTAL     STATUS EXAMINATION format.docxMENTAL     STATUS EXAMINATION format.docx
MENTAL STATUS EXAMINATION format.docx
 
Introduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher EducationIntroduction to ArtificiaI Intelligence in Higher Education
Introduction to ArtificiaI Intelligence in Higher Education
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Interactive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communicationInteractive Powerpoint_How to Master effective communication
Interactive Powerpoint_How to Master effective communication
 
The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13The Most Excellent Way | 1 Corinthians 13
The Most Excellent Way | 1 Corinthians 13
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
Staff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSDStaff of Color (SOC) Retention Efforts DDSD
Staff of Color (SOC) Retention Efforts DDSD
 

Introduction to system programming

  • 1. TOPIC INTRODUCTION TO SYSTEM PROGRAMMING Presented by:- Ms. Sonali Kharade Assistant Professor, Computer Science Department
  • 2. Introduction  A system programming is a program which helps to execute user’s program effectively on a computer system.  Computer software system is classified into two categories i.e. System program and Application program. 1. System program 2. Application program
  • 3. Difference between System software and Application software Sr. No. System Software Application Software 1. System software is used for operating computer hardware. Application software is used by user to perform specific task. 2. System software's are installed on the computer when operating system is installed. Application softwares are installed according to user’s requirements. 3. In general, the user does not interact with system software because it works in the background. In general, the user interacts with application software's. 4. System software can run independently. It provides platform for running application softwares. Application software can’t run independently. They can’t run without the presence of system software. 5. Some examples of system softwares are compiler, assembler, debugger, driver, etc. Some examples of application software's are word processor, web browser, media player, etc.
  • 4. Difference between System and Application programming Sr. No. System Programming Application Programming 1. System programming is comprised of writing programs for assemblers, compilers, editors etc Application programming is used for providing means to facilitate applications such as management information system, Ms. Word. 2. Debugging is difficult. Debugging is not difficult. 3. Fault-fixing is not easy, but reliable.. Fault-fixing is easy and reliable. 4. In system programming, programmer used to build application. Eg. Operating System, DBMS etc In application programming, programmers build application. Eg. Website, Ms-Word, video games etc 5. System programming makes machine to do work. Application programming makes system program to do work.
  • 5. Elements of programming environment  Assembler  Loader and Linker  Macro preprocessor  Compiler  Editor  Debugger  Device Drivers  Operating System
  • 6. Assembler  An assembler is a program that converts assembly language into machine code. It takes the basic commands and operations from assembly code and converts them into binary code that can be recognized by a specific type of processor.  An assembler enables software and application developers to access, operate and manage a computer's hardware architecture and components.  An assembler is sometimes referred to as the compiler of assembly language. It also provides the services of an interpreter. Assembler Assembly language program Machine language program
  • 7. Linker and Loader  A linker combines one or more object files and possible some library code into either some executable, some library or a list of error messages.  The task of integrating the program modules together is called linking.  A loader reads the executable code into memory, does some address translation and tries to run the program resulting in a running program or an error message (or both). Loader Object program on secondary storage Object program in main memory Source program Executable program Compiler Linker
  • 8. Macro Preprocessor  Macro provide an easy and efficient solution to be problem of repeatedly needing the sequence of instruction.  A preprocessor, generally considered as a part of compiler, is a tool that produces input for compilers. It deals with macro-processing, augmentation, file inclusion, language extension, etc.  The macro preprocessor accepts an assembly language program containing macro definitions and macro calls and translates into assembly program which does not contain any macros.  The entire operating system is written as a series of macro definitions and macro calls. Macro Preprocessor Assembly language program with macro Assembly language program without macro
  • 9. Compiler  A compiler is a program that converts high-level language to assembly language. Similarly, an assembler is a program that converts the assembly language to machine-level. Example: Turbo compiler for ‘C language’. Compiler High level language program Low level language program (object code)
  • 10. Interpreter  An interpreter, like a compiler, translates high-level language into low-level machine language. The difference lies in the way they read the source code or input. A compiler reads the whole source code at once, creates tokens, checks semantics, generates intermediate code, executes the whole program and may involve many passes. In contrast, an interpreter reads a statement from the input, converts it to an intermediate code, executes it, then takes the next statement in sequence. If an error occurs, an interpreter stops execution and reports it. whereas a compiler reads the whole program even if it encounters several errors. Source code Interpreter Output
  • 11. Editor  Editors or text editors are software programs that enable the user to create and edit text files. In the field of programming, the term editor usually refers to source code editors that include many special features for writing and editing code. Notepad, Wordpad are some of the common editors used on Windows OS and vi, emacs, Jed, pico are the editors on UNIX OS. Source code Editor Formatted source code
  • 12. Debugger  A debugger program is one that allows the user to view another program line by line. This allows the user to identify incorrect code and find out how a program flows.  A debugger is very useful to find semantic errors in the program. So, it is necessary as it helps the programmer visualize program flow.  A debugger is a computer program used by programmers to test and debug a target program.  Here’s the debugging process: 1. Reproduce the problem. 2. Describe the bug. Try to get as much input from the user to get the exact reason. 3. Capture the program snapshot when the bug appears. Try to get all the variable values and states of the program at that time. 4. Analyse the snapshot based on the state and action. Based on that try to find the cause of the bug. 5. Fix the existing bug, but also check that any new bug does not occur.
  • 13. Operating System  An operating system is the most important software that runs on a computer. It manages the computer's memory and processes, as well as all of its software and hardware. It also allows you to communicate with the computer without knowing how to speak the computer's language. Following are the function of OS. o Memory Management. o Processor Management. o Device Management. o File Management. o Security. o Control over system performance. o Job accounting. o Error detecting aids.
  • 14. Device Drivers  Device Drivers are the software through which, the kernel of a computer communicates with different hardware, without having to go into the details of how the hardware works. It is a software that controls a hardware part attached to a computer and allows the computer to use the hardware by providing a suitable interface.  Thus, the purpose of device drivers is to allow smooth functioning of the hardware for which it is created and to allow it to be used with different operating systems.  To communicate with any device such as mouse, printer, keyboard, device drivers are loaded in operating system.