What is the Difference between Compiler and Translator?

 Posted by Tripati_tutu on 11/2/2010 | Category: .NET Framework Interview questions | Views: 31530 | Points: 40

Compiler converts the program from one computer language to another computer language that is translating from a higher level language to a lower level language. A compiler has to cope with any valid syntax in the source language, and generate semantically equivalent code in the target language.

Translator which translate one language to many other language or else we can say a translator is usually translating from a high level language to another high level language, or from a low level language to a high level language. A translator usually has a fixed body of code that is required to translate the program.

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Login to post response