Language Processing System

Language Processing System

Before continue reading this post if you have not read my previous post please read it first to get a better understanding of the concepts in a order.
Link of my previous post:

Lets now see about Language Processing System,
The steps undergone by a source code to get converted in to machine code is as shown in below diagram.

Preprocessor :
  • It is considered to be a part of the compiler.
  • It deals with macro processing ,file inclusion, augmentation etc..
  • In c program before writing a program we usually include library files in preprocessor it includes these library files with the source code.this is called file inclusion.
  • we will discuss about macro processing in upcoming posts.
Compiler :
Assembler :
  • An Assembler translate assembly language program to machine code.
  • Assembly language consist of instruction sets to deal with memory directly.
Linker/Loader:
  • Linker is a computer program that links and merges various object files together in order to make an executable file.
  • Loader is a part of operating system and is responsible for loading executable files into memory and execute them.



Thank you....

Introduction to Computer Programming Part 2

Introduction to Computer Programming Part 2

Before reading this post if you have not read my previous post on Introduction to computer programming first read it and continue here for more understanding .
link for introduction to computer programming 

Just imagine this scenario... 
you are a manager of a company and your job is to give task to your employee. one day you got transfer to some place x and the language spoken by the employee in that place is y but you don't know that language y ,so you thought you can learn that language y and you start to learn but then you felt that learning language y is very difficult and time consuming . then what would you do?

My answer:
You can have a translator who can know both your language and the language y.the translator T can translate your command to the employee.

So what is the relation between the above scenario and computer programming?
As I said that computer can understand only one language and it machine language and it is hard to understand and code in machine language so the computer scientist came up with an idea of translator . the first translator is assembler which can translate  the assembly language to machine language.

Assembly language uses instructions to code which is easy to understand compared to Machine language and an assembler is the one who translates the assembly code to machine code.

below is the assembly code to subtract two numbers
When I saw the assembly code I felt easy compared to machine code but not so easy.the Scientist also felt the same so they introduced a concept of High level language.
The examples of high level languages are
  • Ada
  • Algol
  • BASIC
  • COBOL
  • C
  • C++
  • Python
  • Java
  • Lisp
  • Pascal  etc....
The High level languages are similar to English and are easy to understand and write code with it.
But as we know that the computer cannot understand High level language we need a translator to convert High Level Language into machine language .

There are two types of translator they are 
  • Compiler
  • Interpreter
Let's learn about them in detail in our next post....Thank You....    

Popular Posts