Showing posts with label HIGH LEVEL LANGUAGES. Show all posts
Showing posts with label HIGH LEVEL LANGUAGES. Show all posts

Tuesday, 3 January 2012

High Level Languages VS Low Level Languages

Dear Visitors,
       In this lesson we tell you about the difference between High Level Languages & Low Level Languages with in some points.
SO FRIENDS LETS START OUR LESSON

First of all we tell you about the low level languages.
  • Low Level Languages:-
1. It is close to Machine language.
2. It is difficult to learn and use.
3. It is machine dependent
4. It does not provide built in functions.
5. Program written in low level language is faster in execution.
6. Deep knowledge of hardware is required to learn and use low level languages.
7. There are few programmers that can write programs in low level languages.
8. It is difficult to trace out errors in the programs written in low level language.
9. Low level languages are not commonly used.
10. The program statement written in low level language is very lengthy.
  • High Level Languages:- 
1. It is close to human language.
2. It is easy to learn and use.
3. It is not machine dependent.
4. It provides large number of built in functions.
5. Program written in high level language is slower in execution.
6. No deep knowledge is required to learn and use high level language.
7. There are many programmers that can write programs in high level language.
8. It is easy t trace out errors in the program written in high level language.
9. High level languages are commonly used.
10. The program statement written in high level language is very short.
                      
                      Hope this lesson increase your knowledge related to languages. If you like this lesson or have suggestion about this course don't forget to make a comment on it.
Thanks for your time.

Saturday, 31 December 2011

TYPES OF LANGUAGES


  • Types of Languages:-

                  Several Programming languages have been developed for writing computer programs. These programming languages are divided into two main categories.
These are:

  • Low Level Languages
  • High Level Languages


  • Low Level Languages:-




The Programming languages that are very close to machine language are called ''Low Level Languages''. The program instructions written in these languages are in binary form (0 and 1) and symbols. There are two examples of low level languages:
  • Machine Language
  • Assembly Language

  • Machine Language:-
                            The programming language in which instructions of the programs are written in binary form (i.e. in a sequence of binary numbers 0 and 1 ) is called Machine Language. It is fundamental computer language.

        There is no need to translate the program written in machine language. It is because the instructions are already in machine code. However programs written in any other programming language must be converted into machine language, So that the computer can understand them.
                A program written in machine language is machine dependent. Every type of computer has its own set of rules for writing program in machine language. Program written on one type of computer system cannot run on another different type of Computer.
                The machine language is very different to learn and to use. The Programmer has to write four or five instructions to perform a simple task. 
  • For Example:-
To perform simple addition operation, A set of instructions is written to move the numbers from memory location to one of the registers.  Similarly, A set of instructions is required to perform the actual addition operation and to receive the result for storing into memory.

  • Assembly Language:-
          In early computers, It was difficult to write a program directly in machine code. Assembly Language was developed to make the programming task easier. It is low level language because the program instructions written in this language are close to machine language. Assembly languages usually used for writing system software and firmware.
                In assembly language, symbols (or English like words) are used to write program instructions, instead of binary code. These symbols or English like words are called mnemonics.

For Example:
                The add instruction is represented by ADD.
                                The program written in assembly language cannot be executed directly on the computer. It is translated into the machine code with the help of translator program called the Assembler.
                Assembly language is easy to learn than machine but it has some disadvantages. These are:
v  Assembly language is machine dependent.
v  For Example:  
             Program written on one type of computer cannot be executed on another type of computer.
v  It does not allow writing large programs efficiently and easily.
A deep knowledge of hardware architecture is required to write a program.

  • High Level Languages:-
 
                       
The programming languages that are close to human languages (e.g like English language) are called High level Languages. The program instructions written in these programming languages are similar to English language. Unlike low level languages, these languages are easy to learn. The example of High level Programming languages are:
C, C++, Java, FORTRAN, BASIC, Pascal, COBOL etc.
Every High level language has its own set of rules for writing program. These rules are called the Syntax of languages.
A program written in high level language is called the source program or Source code. The source code cannot be run directly on the computer. It must be translated into machine code, called Object Code. The source code is translated into machine code with the help of translator program, called language translator or language processor.
                          Every High level programming language was designed for a specific purpose. Some of high levels programming languages are used to write application programs or Software, while others are used to write system Software.
For Example:-
                                The programming languages C and C++ are mostly used to write system software such as Operating System etc. Similarly, the users of other high level programming languages are:
  • Fortran:-
(Formula Translation) language is used to solve the mathematical problems in the fields of engineering and science.
  • Cobol:-
(Common Business Oriented Language) is used to written the business applications.
  • Java:-
Java is used for network programming and web page designing.