Icps Module 1 Part3 of 5
Icps Module 1 Part3 of 5
○ A computer understands the language of 0∙s and 1∙s, while the programmer is
The computer can easily Not so easy for the computer to Difficult for the computer to
understand the programs understand. understand
written in machine language
directly.
difficult for the programmer Not so easy as high level language Easier for programmer to
to understand. but easier than machine language read, write and understand.
(Complexity lies between machine English-like language
language and high level language.)
difficult to write a program in
machine language
5.2.1 Assembler
● Assembly language is also referred to as a symbolic representation of the machine code.
● Assembler is a translator software that converts a program written in assembly language
into machine code.
● There is usually a one-to-one correspondence between simple assembly statements and
machine language instructions.
● The machine language is dependent on the processor architecture, though computers are
generally able to carry out the same functionality in different ways.
○ Thus the corresponding assembly language programs also differ for different
computer architectures.
translates the program written in a high-level translates the program written in a high-level
language to machine language (object code- language to machine language (object code-
binary). binary).
Compiler looks at the entire source code. Interpreter looks at a source code line-by-line.
Compiler converts the entire source code into Interpreter converts a line into machine
object-code and creates the object code. executable form, executes the line, and proceeds
The object code is then executed by the user. with the next line.
Once source code is compiled, the object code Interpreter executes line-by-line,
is created and that is executable.
This object code can be executed multiple During each execution, every time the source
code is first interpreted and then executed.
number of times by the user.
During execution of an object code, the Both interpreter and the source code is required
compiler is not required. during execution (because source code is
interpreted during execution).
Fast Slow
Languages that use compiler: C,C++,COBOL Languages that use interpreter Python, BASIC
5.3 SOFTWARE
Software tells the computer how the tasks are to be performed; hardware carries out these tasks
Types Of Software
Software can be broadly classified in two categories:
1. System Software,
2. Application Software
● System software provides the basic functions that are performed by the computer. It is
necessary for the functioning of a computer. The system software interacts with
hardware at one end and with application software at the other end. E .g. Operating
system, compiler, assembler
● Application software is used by the users to perform specific tasks(applications). The
application software interacts with the system software and the users of the computer.
E.g. Microsoft word, Paint
● OS hides the working of the hardware from the user and makes it convenient for the
user to use the machine.
● The different resources of computer hardware have to be managed and controlled.
○ This includes managing the communication between different devices, controlling
the sequence and execution of processes, allocating space on hard disk, providing
error handling procedures etc.
● OS supervises and manages the hardware of the computer.
Operating systems E.g. Microsoft Disk Operating System (MS-DOS), Windows 7, Windows
XP, Linux, UNIX, and Mac OS X Snow Leopard.
Functions of OS are:
Fig. Functions of OS