Discussion:- Compiler Vs Interpreter
Page 1 of 1 • Share •
Discussion:- Compiler Vs Interpreter
As you guys know we have two way to change source code to machine code . Through Compiler and Through Interpreter. But What is Best and in what situation one outperforms other.
Nishchal- The Last Don
- Posts : 55
Join date : 2010-05-22
Age : 33
Re: Discussion:- Compiler Vs Interpreter
Both interprter and compiler are translator,bt they should be used as the situtation occures....
As we know that compiler is a translator that convert source code into machine code..therfore compiler is used in situtation where we want to compile all the program at a time .it compile all the program at once and then flag error if any..it also produce the number line where error is encounterd.so to save time, compiler should be used.to compile line by line in tc press shift+f7 key.
nw come to interpreter,interpreter is translator that translate source code line by line.so it is time consuming.interpter should be used in situation where it became diffcult to debug source program by compiler
As we know that compiler is a translator that convert source code into machine code..therfore compiler is used in situtation where we want to compile all the program at a time .it compile all the program at once and then flag error if any..it also produce the number line where error is encounterd.so to save time, compiler should be used.to compile line by line in tc press shift+f7 key.
nw come to interpreter,interpreter is translator that translate source code line by line.so it is time consuming.interpter should be used in situation where it became diffcult to debug source program by compiler
vijay thakur- Starters
- Posts : 25
Join date : 2010-05-23
Age : 26
Location : kullu
o yeah !!
सत्य वचन भाईसाहब !! 

mahant saab !!- Starters
- Posts : 5
Join date : 2010-06-05
Age : 70
Location : kullu
Re: Discussion:- Compiler Vs Interpreter
vijay thakur wrote:Both interprter and compiler are translator,bt they should be used as the situtation occures....
As we know that compiler is a translator that convert source code into machine code..therfore compiler is used in situtation where we want to compile all the program at a time .it compile all the program at once and then flag error if any..it also produce the number line where error is encounterd.so to save time, compiler should be used.to compile line by line in tc press shift+f7 key.
nw come to interpreter,interpreter is translator that translate source code line by line.so it is time consuming.interpter should be used in situation where it became difficult to debug source program by compiler
actually the interpreter and compiler can do the same job . If compiler cant compile the code then interpreter wont interpret it as well.
Here is some points that can destinguish both things:-
1. Compiler need all the source code , but that doesnt mean interpreter doesnt. Interpreter also neds the full source code.
2. When Using Compiler the source Code is Converted into Machine code. But interpreter will generate the code while its interpreting the source code. so essentially there is the main difference between comipler's code and interpreter's code. While compiler's generated code is actaully machine code , interpreter works directly on the source code.
3.this brings us to the conclusion that once compiled it is very hard to change the machine code generated by compiler, on the other hand interpreter works directly on the source code which can be modified directly (i.e more easily)
4. as far as performence is concerned , Compiler code will run fast as its in machine code already. While there is a overhead associated with interpreting the code on runtime and converting it to machine code and then running it.
5. Most of the advance engine use both compiler and interpreter for better flexibility. Core part is comipled while scripting part is often interpreted.
Nishchal- The Last Don
- Posts : 55
Join date : 2010-05-22
Age : 33
Re: Discussion:- Compiler Vs Interpreter
thanks sir.......................... 

vijay thakur- Starters
- Posts : 25
Join date : 2010-05-23
Age : 26
Location : kullu

» discussion on hand types via the elements
» Upcoming dharma discussion at Shasta Abbey _ 18 June and after
» Welcome to the discussion forum!
» First discussion topic - BREXIT
» Protecting lion cub from its mother
» Upcoming dharma discussion at Shasta Abbey _ 18 June and after
» Welcome to the discussion forum!
» First discussion topic - BREXIT
» Protecting lion cub from its mother
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum
» What resources can I find rental properties in San Mateo County California?
» Resources for terracing a sloped backyard to put in a garden?
» What resources have you found useful in your search for a birth family member or an adoptee?
» Admission Form for Non Subsitised Seats
» Find Error in the code
» what is the concept of POINTER !!
» All Game Lovers should read this too .... OpenGL
» The game lovers should read this.....DirectX