which translator system software is used to convert a source program to an object code? explain the types..
plz anyone help...
+ http://bit.ly/vucodes (Link for Assignments, GDBs & Online Quizzes Solution)
+ http://bit.ly/papersvu (Link for Past Papers, Solved MCQs, Short Notes & More)+ Click Here to Search (Looking For something at vustudents.ning.com?) + Click Here To Join (Our facebook study Group)
A program written in a high-level language is called source code. Source code is also called source program. Computer cannot understand the statements of high-level language. The source code cannot be executed by computer directly. It is converted into object code and then executed.
A program in machine language is called objet code. It is also called object program or machine code. Computer understands object code directly.
Language translator is a program that translates a program of high level language of computer understands only machine language. A program written in high-level or assembly language cannot be run on a computer directly. It must be converted into machine language before execution.
Types of translators
Different types of translators or language processors are:
A compiler is a program that converts the instruction of a high level language into machine language as a whole. A program written in high-level language is called source program. The compiler converts the source program into machine code. The machine code program is known as object program. The object program can executed many times.
The compiler checks each statement in the source program and generates machine instructions. Compiler also checks syntax errors in program. A source program containing an error cannot be compiled.
An interpreter is a program that converts one statement of a program into machine at one time. It executes this statement before translating the next statement of the source program. If there is an error in the statements, the interpreter stops working and displays an errors message.
The advantage of interpreters over compilers is that an error is found immediately. So the programmer can correct errors during program development. The disadvantage of interpreter is that it is not very efficient. The interpreter does not produce an object program. It must convert the program each time it is executed. Visual basic uses interpreter.
An assembler is translating program that translates the instruction of a assembly language into machine language.