What is a Language?
Language is a communication system of human.
What is a programming Language?
A programming Language is a formal constructed language design to communicate instruction to a computer or machine.Programming language is used to create programs to control the behavior of a machine.
Types of programming Languages
- Low level Language
- High level language
- Low level language
- Low-level language is a programming language that deals with a computer's hardware components
- Low-level languages are designed to operate and handle the entire hardware and instructions set architecture of a computer directly.
There are two types of low level languages
- Machine language
- Assembly Language
- Machine Language
Machine code or machine language is a set of instructions executed directly by a computer's central processing unit (CPU). Each instruction performs a very specific task, such as a load, a jump, or an ALU operation on a unit of data in a CPU register or memory. Every program directly executed by a CPU is made up of a series of such instructions.
- Assembly languages
- An assembly language is a low-level programming language for microprocessorsand other programmable devices.
- Assembly language implements a symbolic representation of the machine codeneeded to program a given CPU architecture.
- Assembly language is a mathematical and logical symbol that used tocommunicate to the computer.
- High level language
High-level language is a computer programming language that is designed for a specific job, and is easier to understand. Its source code is written in human understandable language. However, for a computer to understand and run a program created with a high-level language, it must be compiled into machine language.
What is a compiler?
Compiler is software which converts source code into machine code. It convert whole document.
What is an Assembler?
Assembler is software which converts source code written in assembly language into machine code. It converts line by line.
What is interpreter?
Interpreter is a computer program that directly executes, i.e. performs, instructions written in a programming or scripting language, without previously compiling them into a machine language program
Difference between Compiler and Interpreter
No | Compiler | Interpreter |
1 | Compiler takes Entire program as input | Interpreter takes Single Instruction as input |
2 | Intermediate object code is generated | No intermediate object code is generated |
3 | Conditional control statements is executes faster | Conditional control statements is executes slower |
4 | Program not need to be compiled everytime | Ever time higher level language program converted into low level language |
5 | Errors are displayed after entire program is checked | Errors are displayed for every instruction interpreted (if any) |