System Software-Introduction To Programming-Lecture Notes, Study notes of Computer Programming

A program is a precise sequence of steps to solve a particular problem. This course includes basic programming structure like loops, operator, memory allocation, reference, pointers etc. It teaches how to be a good programmer. This lecture handout is about: System, Software, Categories, Application, History, C, Language, Development, Environment, Operating, Device, Drivers, Utilities

Typology: Study notes

2011/2012

Uploaded on 08/06/2012

anchal
anchal 🇮🇳

4.6

(9)

95 documents

1 / 6

Toggle sidebar

This page cannot be seen from the preview

Don't miss anything!

bg1
Lecture No. 2
Reading Material
Deitel & Deitel – C++ How to Program chapter 1
1.2, 1.3, 1.4, 1.6,
1.7
1.11, 1.12, 1.13
Summary
o Software Categories
o System Software
o Application Software
o History of C language
o Development Environment of ‘C’
Software Categories
Software is categorized into two main categories
o System Software
o Application Software
9
docsity.com
pf3
pf4
pf5

Partial preview of the text

Download System Software-Introduction To Programming-Lecture Notes and more Study notes Computer Programming in PDF only on Docsity!

Lecture No. 2

Reading Material

Deitel & Deitel – C++ How to Program chapter 1 1.2, 1.3, 1.4, 1.6,

1.11, 1.12, 1.

Summary

o Software Categories o System Software o Application Software o History of C language o Development Environment of ‘C’

Software Categories

Software is categorized into two main categories

o System Software o Application Software

docsity.com

System Software

The system software controls the computer. It communicates with computer’s hardware (key board, mouse, modem, sound card etc) and controls different aspects of operations. Sub categories of system software are: o Operating system o Device drivers o Utilities

times abbreviated as "OS") is the program that manages all

efinition

responsible for controlling the allocation and usage of hardware sources such as memory, central processing unit (CPU) time, disk space, and peripheral devices. The

Operating system An operating system (some the other programs in a computer. It is a integrated collection of routines that service the sequencing and processing of programs by a computer. Note: An operating system may provide many services, such as resource allocation, scheduling, input / output control, and data management.

D

“Operating system is t he software re operating system is the foundation on which applications, such as word processing and spreadsheet programs, are built. ( Microsoft )”

docsity.com

emory and the urden of treating a data item as a whole number or real number, for example was the

unlimited powers to do with computers. You can program to rn on or off any device of computer. You can do a lot to hard disk and other peripherals. It is very easy to write a program in C that stops the running of computer. while programming in C.

unambiguous and machine-independent definition of the language. In 1989 the standard was approved. ANSI cooperated with ational Standard Organization (ISO) to standardize C worldwide.

we need a tool for writing the code of a program. For this purpose we used

s we write the code in English and we know that computers can understand only 0s nd 1s. So we need a translator which translates the code of our program into machine language. There are two kinds of translators which are known as Interpreter and Compilers. These translators translate our program which is written in C-Language into Machine language. Interpreters translates the program line by line meaning it reads one line of program and translates it, then it reads second line, translate it and so on. The benefit of it is that we get the errors as we go along and it is very easy to correct the errors. The drawback of the interpreter is that the program executes slowly

versions of the UNIX operating system at Bell Laboratories. Thus both the languages were being used to develop various system software even compilers. Both BCPL and B were ‘type less’ languages, every data item occupied one ‘word’ in m b responsibility of the programmer. Dennis Ritchie developed a general purpose language, called C language, by using different features of BCPL and B languages. C uses many important concepts of BCPL and B while adding data typing and other features. In the start C became widely known as the development language of the UNIX operating system, and the UNIX operating system was written by using this C language. The C language is so powerful that the compiler of C and other various operating systems are written in C. C language has almost tu

So be careful The C language and UNIX operating system widely spread in educational and research institutions. There was C and UNIX everywhere. Due to the wide spread of C, different researchers started to add their features in the language. And thus different variations in C came into existence. Many universities developed their own C by adding different features to the C language developed by Ritchie. These variations led to the need of a standard version of C. In 1983 a technical committee was created under the American National Standards Committee on Computer and Information Processing to provide an

the Intern

Tools of the trade As programmer we need different tools to develop a program. These tools are needed for the life cycle of programs

Editors

First of all Editors in which we write our code. We can use word processor too for this, but word processors have many other features like bold the text, italic, coloring the text etc, so when we save a file written in a word processor, lot of other information including the text is saved on the disk. For programming purposes we don’t need these things we only need simple text. Text editors are such editors which save only the text which we type. So for programming we will be using a text editor

Compiler and Interpreter A a

docsity.com

as the interpreter translates the program line by line. Another drawback is that as interpreters are reading the program line by line so they cannot get the overall picture of the program hence cannot optimize the program making it efficient.

Compilers also translate the English like language (Code written in C) into a language (Machine language) which computers can understand. The Compiler read the whole program and translates it into machine language completely. The difference between interpreter and compiler is that compiler will stop translating if it finds an error and there will be no executable code generated whereas Interpreter will execute all the lines before error and will stop at the line which contains the error. So Compiler needs syntactically correct program to produce an executable code. We will be using compiler in our course

Debugger Another important tool is Debugger. Every programmer should be familiar with it. Debugger is used to debug the program i.e. to correct the logical errors. Using debugger we can control our program while it is running. We can stop the execution of our program at some point and can check the values in different variables, can change these values etc. In this way we can trace the logical errors in our program and can see whether our program is producing the correct results. This tool is very powerful, so it is complex too

Linker Most of the time our program is using different routines and functions that are located in different files, hence it needs the executable code of those routines/functions. Linker is a tool which performs this job, it checks our program and includes all those routines or functions which we are using in our program to make a standalone executable code and this process is called Linking

oader fter a executable program is linked and saved on the disk and it is ready for xecution. We need another process which loads the program into memory and then instruct the processor to start the execution of the program from the first instruction (the starting point of every C program is from the main function). This processor is known as loader. Linker and loaders are the part of development environment. These are part of system software.

The following figure represents a graphical explanation of all the steps involved in writing and executing a program.

L A e

docsity.com