Want this question answered?
basically compiler is that convert an object code in to machine code and machine code is directly understood by a computer. assembler and interpreter are the examples of compilers. assembler is used to convert object code of assmebly language in machine code.
Both compiler and interpreter are the language programs that translates source program into machine code or we can say object code. Both are used to find errors in source program.
No. Computers do not convert program source code into machine code, period. That job is the responsibility of another piece of software, known as the interpreter or compiler, a machine code program which effectively tells the computer how to perform the translation from source code to machine code. The computer cannot do this job by itself as computers only understand machine code and nothing else. An interpreter simply converts each statement of source code into the equivalent machine code and executes it, one statement at a time. This is extremely slow because subroutines that are called many times must be translated each time they are called, for instance. Thus the source code must always be executed within the interpreter software. A compiler, on the other hand, converts the entire source program into object code which can then be linked to produce the required machine code. Once linked, the machine code will execute without any further interpretation, and is therefore known as a standalone executable.
A traditional compiler converts the source code to machine code; many recent compilers convert the source code to some intermediate language instead. An interpreter runs the source code directly, which means the source code is basically "interpreted" one line at a time.
It coverts your source code into machine code so the computer can execute it.
Programmers used (and still use) translators to convert the source code into object code.
I think the question is wrong. It should be compiler vs interpreter. compiler reads the progem in c/c++ convert it to machine code (object code) and then loader loads it in the memory to run in the supervision of OS. Interpreter reads one line of the code executes it and then reads the next and runs and so on. compiler only creates executables, it doesn't run them while interpreter runs them.
You cannot. Object code files are machine code files that have yet to be linked. There is no way to convert object code back to its original source code.
SOURCE PROGRAM=A set of instructions of the high level language used to code problems to find its solution on a computer is referred as source program. OBJECT PROGRAM=The computer translates the source program into machine language program called object program by using an interpreter or compiler is called object program.
Source code is translated into machine code by an interpreter, a compiler or an assembler, depending on the language that was used to write the source code.
In computer science, an interpreter normally means a computer program that executes, i.e. performs, instructions written in a programming language. An interpreter may be a program that eitherexecutes the source code directlytranslates source code into some efficient intermediate representation (code) and immediately executes thisexplicitly executes stored precompiled code[1] made by a compiler which is part of the interpreter system
Yes