Skip to main content

TYPE OF LANGUAGE & TRANSLATORS of the Computer

                                                 

                         LANGUAGES OF THE COMPUTER

Languages of the Computer

All we known about computer that it is a electronic device. It do it task after instruction are given to it by the user.

But we should also known about it's language too.

Computer is a machine oriented. It understand only programming language & machine language or we can say binary language.
Web Designing Courses

What is Binary Language ????

Binary is a way to show any type of data (such as number and text ). Computer work only in binary language. Binary is a number system and is known as a base 2 system because it uses two characters- 0 & 1

 

Basic Types of Programming & Computer Languages are :

1.Low - Level Language

a) Machine Language  

b) Assembly Language

2.High-Level Language


a) Algebraic Formula -Type Processing               

 b)Business Data Processing

c) String & List Processing

d) Multi Purpose Processing








Briefly Explaination  &  Advantages or Disadvantages of a Languages 

Machine Language 

The set of instruction codes, whether in binary or in decimal notation, which can be directly understood by the computer without the helping of translating program is called a machine code or machine language program.

A computer understands information composed of only 0 and 1 . This means that a computer uses binary digits for its operation. The Computer's instructions are therefore coded and stored in the memory .

A program written in the form of 0s and 1s is called a machine Language Program. One thing is that there is a specific binary code for each instruction.


Advantages:

1.It makes fast and efficient use of the computer

2.It requires no translator to translate the code i.e. directly understood by the computer.

Disadvantages:

1.All operation codes have to be remembered.

2.All memory addresses have to be remembered.

3.It is hard to amend or find errors in a program written in the machine language.

4.These language are machine dependent i.e a particular machine language can be used on only one type of Computer.

Assembly Language 

The instruction words which direct the computer are stored in the machine in numerical form. The programmer however rarely writes his instructions in numerical form instead, each instruction to the computer is written using a letter code to designate the operation to be performed, plus the address in the memory of the number to be used in the step of the calculation .

Later, the alphabetical section of the instruction word is converted to numerical form using an assembler .

An instruction word as written by the programmer therefore consist of two types :

a) The " operation-code " part which designates the operation like addition, Subtraction , multiplication etc. to be performed.

b) The address of the number to be used. 



Advantages :

a.       Programs written in machine language are replaceable by mnemonics which are easier to remember.
b.      Memory Efficient.
c.       It is not required to keep track of memory locations.
d.      Faster in speed.
e.      Easy to make insertions and deletions.
f.        Hardware Oriented.

g.       Requires fewer instructions to accomplish the same result.

Disadvantages :

a)      Long programs written in such languages cannot be executed on small sized computers.
b)      It takes lot of time to code or write the program, as it is more complex in nature.
c)       Difficult to remember the syntax.
d)      Lack of portability of program between computers of different makes.

 

 High Level Language

To overcome the difficulties associated with assembly language, high-Level or procedure-oriented languages were developed.

High-Level languages permit programmers to describe tasks in a form which is problem oriented than the computer oriented .The instructions are written in a high Level Language is called statements.

The statements resemble more closely English and mathematics as compared to mnemonics in assembly language.



Examples are:
1.Beginner's All Purpose Symbolic Insstruction Code (BASIC)
2. PASCAL
3.Formula Translation (FORTRAN)
4.Common Business-Oriented Language (COBOL)
5. Algorithmic Language (ALGOL)

   Advantages

·         High level languages are programmer friendly. They are easy to write, debug and maintain.
·         It provide higher level of abstraction from machine languages.
·         It is machine independent language.
·         Easy to learn.
·         Less error prone, easy to find and debug errors.
·         High level programming results in better programming productivity.


Disadvantages 
·         It takes additional translation times to translate the source to machine code.
·         High level programs are comparatively slower than low level programs.
·         Compared to low level programs, they are generally less memory efficient.
·         Cannot communicate directly with the hardware.









      Translators of the computer Languages:-

A program written in high-level language is called as source code. To convert the source code into machine code, translators are needed.


A translator takes a program written in source language as input and converts it into a program in target language as output.It also detects and reports the error during translation.



Roles of translator are:

a.       Translating the high-level language program input into an equivalent machine language program.

b.      Providing diagnostic messages wherever the programmer violates specification of the high-level language program.







 Different type of Translators


The different types of translator are as follows:


Compiler


Compiler is a translator which is used to convert programs in high-level language to low-level language. It translates the entire program and also reports the errors in source program encountered during the translation.






Interpreter

Interpreter is a translator which is used to convert programs in high-level language to low-level language. Interpreter translates line by line and reports the error once it encountered during the translation process.

It directly executes the operations specified in the source program when the input is given by the user.

It gives better error diagnostics than a compiler.







Assembler


Assembler is a translator which is used to translate the assembly language code into machine language code.








Comments

Popular posts from this blog

WHAT IS A COMPUTER? Hardware & Software

In this blog we will discuss about ,"What is computer and differences among its part as Hardware & Software". We know that all information are scattered in google but I want to make it easy for our readers.Otherwise it is difficult to know which information is right and which is wrong . My Blog is dedicated to learners & easy learning  WHAT IS A COMPUTER? What is Computer  : Computer is an electronic device that is designed to work with Information. The term computer is derived from the Latin term  ‘compute’ , this means to  calculate  or  programmable machine .   Therefore computers can perform complex and repetitive procedures quickly, precisely and reliably. Modern computers are electronic and digital. All general-purpose computers require the following hardware components: §   Central processing unit (CPU) : The heart of the computer, this is the component that actually executes instruction...

CHARACTERISTICS OF A COMPUTER & CENTRAL PROCESSING UNIT (C.P.U)

Hello, Readers This Blog will help you understand the Characteristics of Computer & About C.P.U (Central Processing Unit ). Characteristic means Computer capabilities i.e Characteristics of Computer  1.Speed 2.Accuracy 3.Consistency 4. Data Storing Capability 5.Flexibility  A. Speed : A Computer is a very fast device .It can perform , in a few Second ,the amount of work that a human being can do in an entire year working round the clock .The speed of the computer is usually 2 to 4 GHz . A powerful computer is capable of performing  about 10 to 40 million arithmetic calculations in a second. or We can say that Computer speed is measured in   megahertz (MHz) or gigahertz (GHz). One Megahertz equals to one million ticks per second,one Gigahertz equals one billion ticks per second . B. Accuracy : The accuracy of a Computer is consistently high an the degree o accuracy of a particular task is 100% accurate.In  a every computer each and e...

VIRUS

                                  WHAT IS VIRUS ?                                                  A Virus is a program created by programmers which is used to infect the Operating System. After the virus code is written, it is buried within an existing program and once that program is loaded into the computer, the virus replicates by attaching copies of itself to other programs in the system. Viruses  are merely found in the network environment.       Virus is just like that illness for a computer.Think that what happen when you are ill, that your body functions are not working properly.As same Computer Virus is also do the same things with it. The term 'computer virus' was first formally defined by Fred Cohen in 1983. They are always indu...