Introduction to Translator Compiler in language and also Compiler in C++ | A brief overview about the types of Translator|Compiler.
here we learn what is the role of Translator Compiler in programming? Why we use the translator? What is the types of Translator and its brief overview? What is the difference between compiler and its other types and Many more as you want.learn a brief introduction of Translator and Compiler.
This is not our first class about C++ programming we run towards deep in this topic.
So let start to our topic”A complete Introduction of Translator Compiler in C++ language”
Assalam-o-Alikum
welcome dears first of all i want to tell you about the definition of the Translator. Everyone know about the means of Translator. If someone does not know about it I will describe its meaning for you. Translator means that “to Translate some thing from one language to another language”.
Translator Definition:)
To Translate and convert the high level language into low level language and Machine language. it is also convert the source code into Machine code and object code.
Now the Question is that what is high level language and low level language. I was explain in the last tutorial very well but for i will explain it again.We have two languages in our computer in which one is easily understand by the computer that is low level language. And another language is high level language that is easily understand by user or human.
low level language is nearer to computer or hardware. Machine language and Assembly Language are “low level languages” and C, C++,FORTRAN, PASCAL and JAVA are the “high level language”.
Now the another Question is
what is source code or file and what is the object code or file?
Source code:)
The program written in high level language that computer cannot understand easily is called source code. Normally it is based upon English like words that is easily understand by the user or programmer.
Object code:)
Object code is totally different from source code. After Translation mostly Translator create a file which is easily understand by the computer because it is based upon Machine Language and binary Language. The Extenuation of this file is (.obj).
Types of Translators:)
There are three types of translators.
- Compiler
- Interpreter
- Assembler
Compiler:)
Compiler is the type of Translator that Translate or compile and convert the source code into object code as a whole (like a paragraph). Which means that compiler compile the all instruction at one time. If the Translator found some Error it cant be stopped.Compiler read all instructions at one time and then tell the programmer about any Error.
Interpreter:)Interpreter is also the type of Translator that Translate and convert the source code into object code but not as a hole. Interpreter convert the source code into object code but reading instruction by instruction or Statement by statement.If this Translator found any Error then it will be stopped and tell the programmer about the Error and after all the instructions cant be read.
Assembler:)
Assemble is the converter and Translator that is only use convert the Assembly code to Machine Language.
Note:
The only difference Between Compiler and Interpreter is that Compiler convert hole data and Interpreter convert data instructions by instructions.
I think it enough for today better lack next time.