We have been working very hard since 2009 to facilitate in learning Read More. We can't keep up without your support. Donate.

www.bit.ly/vucodes

+ Link For Assignments, GDBs & Online Quizzes Solution

www.bit.ly/papersvu

+ Link For Past Papers, Solved MCQs, Short Notes & More

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)


Views: 158

Reply to This

Replies to This Discussion

Source code

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.

Object code

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

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:

  1. Compiler
  2. Interpreter
  3. Assembler

1. Compiler

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.

2. Interpreter

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.

3. Assembler

An assembler is translating program that translates the instruction of a assembly language into machine language.

thnks

Welcome

RSS

© 2021   Created by + M.Tariq Malik.   Powered by

Promote Us  |  Report an Issue  |  Privacy Policy  |  Terms of Service

.