Complier-High Level language
It also translates the whole high level program into object program if it does not have any syntax error. The disadvantage of the interpreter are overcome in this type of translator. Ones the program is translated the object codes are stored n a separate file. Next time whenever that program is executed it need not to be translated again hence saves time of execution. The disadvantage of compiler is that it does not generate the object code until all syntax errors are removed hence it is very irritating for the beginners as takes time to execute the program for the first time. It might have one error but may points to may lines affected by that error this is again confusing and puzzling for the new programmer.