Computer use machine language that is binary(0 or 1). User can understand binary language. obviously it is difficult to read and understand the instruction of binary form.Different computer languages
Machine language
That is also called binary language. Computer only understand binary language. That language is also called machine language.That language written in the form of string of binary 0 and 1. Main problem of this language is that it is difficult to read and understand.
Assembly Language
Using assembly language Instruction can be easily written in the form of letter and symbol but not in 0 and 1.Using Assembly language a programmer need not keep track of storage location of data and instruction.
For example
To add two number we write ADD A,B in assembly language.
High level language
Using this language easily write program using programming language like c,c++,java etc.
for example to add two number
c=a+b in high level language.
Computer can understand only machine language and user understand high level language.To solve that problem we require a software program which should convert this machine independent program into machine language because computer can only understand machine language.That software is called translator.
Type of translator that is used to convert high level code into machine understanable code
- Compiler
- Assembler
- Interpreter
- Preprocessor
- linker and loader
- Compiler only translate the program.
- Compiler is fast as they translate whole program at once.
- C,C++ use compiler to convert program code into machine understandable code.
0 Comments