Compiler And Interpreter :-
Basically compiler and interpreter , both are a types of translator which is used to translate your program written in high level language ( human understandable form ) into low level language ( machine understandable form ) .
Compiler :-
Compiler is a type of a computer program which is used translate high level language into low level language i.e machine language . Compiler takes high level language as input and produces output which is in machine understandable form ( binary 0 and 1 ) .
Some points which we should remember :
- Compiler is just a program , it is not come in used to fix error found in program .
- if you have a program written in wrong syntax , it will not compile .
See in the above figure's left side , there is program written in whatever language ( c , c++ , java etc ) which are high level . Now this program has go through with compiler and it has been converted into binary form ( 010101 like this ) . I hope now you have understand clearly all about compiler .
- It generates a intermediate object code .
- Compiler used to scan whole program in one at a time .
- before execution of any program , program would be compile first .
- Program execution is faster in use but it is difficult as compared to interpreter ( we will see about it below) .
- C , C++, C# are the programming language Which uses compiler .
- It is used to translate one line of program one at a time .
- It takes very less time to analyse the code but overall time is much higher than compiler .
- It does not generate any intermediate code like object code .
- The programming which used interpreter are Python , Ruby .
- No generation of any intermediate phase , so it is considered as highly efficient in terms of its memory .
Request :- You please must follow must follow my instagram page which is related to this feild , I am posting their regularly .
Comments
Post a Comment