Upload
rudolph-warren
View
242
Download
6
Tags:
Embed Size (px)
Citation preview
UNIT - 1 Topic - 3
COMPUTER
LANGUAGES
What is a SOFTWARE?Computer software is a program that tells a computer what to do.
Computer software, or just software, is any set of machine-readable instructions that directs a computer's processor to perform specific operations.
Software is a program that enables a computer to perform a specific task, as opposed to the physical components of the system (hardware).
Software is a set of programs, which is designed to perform a well defined function.
What is a Computer Program?
A computer program, or just a program, is a sequence of instructions, written to perform a specified task with a computer..
A computer program is a set of instructions for a computer to perform a specific task.
What is a Computer Instruction?
A computer instruction is a statement which tells to the computer to do some task (Operation).
Example:
c = a + b;It is instruction which tells to the computer that “add values stored in memory location ‘a’ & ‘b’ and store the result in memory location ‘c’”.
How Computer Instruction is generated?
We use Computer Programming Language to generate computer instructions.
NoteRelated to the computer technology languages are divided into THREE types.
High Level Language
Middle Level Language
Low Level Language
High Level Language
Language which can be understand by a computer user is called as a High Level Language.
Middle Level Language
The combination of High Level & Low Level Languages is called Middle Level Language.
Low Level Language
Language which can be understand by a computer is called as a Low Level Language.
Binary Language
Problem with these languages?
UsersUser writes all
instructions in High Level Language
Solution
To solve the language problem we use TWO types of translators.
InterpreterInterpreter converts instructions from High Level Language to Low Level Language, but it is done ‘LINE BY LINE’.
void main(){ int a,b,c; a = 10 b = 20; c = a + b;}
1110001010110001110111110001011010001
Conversion is stopped
CompilerCompiler converts instructions from High Level Language to Low Level Language, but it is done ‘ENTAIRE PROGRAM AT TIME’.
void main(){ int a,b,c; a = 10 b = 20; c = a + b;}
1110001010110001110111110001011010001
Creates a List of ERRORsIt Displays the List of ERRORs1110001011010001
11100010110100011110001011010001100101
If there are no ERRORs