answersLogoWhite

0

The correct answer would depend on what a computer program is translated into and what is used to perform the translation.

A compiler scans all the instructions in a computer program to see if the program conforms to the rules of the programming language and then translates it following a set of rules for how to translate it and into what. The result of a compilation is something closer to the what the computer hardware can process.

If the compiler results can be directly loaded into memory and processed by the computer processor, it is called an executable. If the compilation results in machine language instructions but it still needs to be combined with other programs, it is called an object (or object code). Once it is combined (linked) with the other programs, it can then be called an executable.

Compiling can also result in a more compact version of the original program although it is not the language of the computer hardware. For example:

  • Compiling an IBM i (AS/400) program results in IRP(Intermediate Representation of Program). IRP is converted to actual machine code by the system when it is loaded for execution.
  • Microsoft .NET programs are compiled into CIL (Common Intermediate Language) which eventually is converted to machine code by the .NET jit (just in time) compiler at execution time.
  • A Java programs is compiled into Byte Code which is processed by an interpreter called the JVM (Java Virtual Machine).

There are situations when we need to use a program written in a computer language but the computer does not have a compiler to translate that language. Translators may be available to convert the program to a language that is available on that computer. That language would often be C or Java. After using a language translator, the resulting program can be compiled and run.

User Avatar

Wiki User

9y ago

What else can I help you with?