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 instructions organized in programs ("software") wh

FORMULA MS-EXCEL PART-4

                                DATE & TIME  FUNCTION   1. TODAY ( ) :- Summary  The Excel TODAY function returns the current date, updated continuously when a worksheet is changed or opened. The TODAY function takes no arguments. You can format the value returned by TODAY using any standard date format. If you need current date and time, use the  NOW function . Purpose  Get the current date Return value  Valid Excel date Syntax  =TODAY () Arguments  Usage notes  The TODAY function takes no arguments, and returns the current date, updated whenever a worksheet is changed or opened. You can also use F9 to force the worksheet to recalculate and update the value. If you need a static date that won't change, you can  enter the current date using the keyboard shortcut  Ctrl + Shift + ; If you need current date and time, use the  NOW function . Examples = TODAY () // current date = TODAY () - 7 // on

Electronic Mail " E-Mail"

Introduction of E-Mail E-Mail is also known as electronic mail . It is equivalent of sending a letter though the mail.Primary component of the Electronic Mail system is a post office , it is an area on the shared hard disk that is reserved for mail. This post office serves as the central message holder and has both "in" and "out" baskets for each user . To send a message a link is established between the sender's  "out "basket and the addressee's "in" basket. The method for receiving mail depends on the sophistication of the system. When multitasking personal computers and workstation are used, mail can be delivered to users while they are working  on something else .Otherwise users have to interrogate their mailboxes (diskspace) in a central system or  file server. 👉   Communication network  is the backbone of electronic mail that connect remote terminals to a central system or a local area network that interconnec