answersLogoWhite

0

Compilers are only necessary for programmers; ordinary users do not require them. A compiler is a program which converts a high-level source input into a lower-level source output, reducing the amount of abstraction. In most cases the output is native machine code and/or an assembly source, however there are some exceptions, such as the Java compiler which outputs Java byte code, and cross-language compilers such as C++ to C compilers.

Machine's do not understand either high-level source code or low-level assembly code, they only understand their own native machine code. Thus conversion to machine code is necessary. Once converted to machine code, no further translation is necessary.

Assembly sources must be converted using an assembler, however assembly is a machine-dependent language (it is non-portable). High-level languages are generally portable and are either compiled or interpreted. Interpretation requires a runtime program to perform the conversion while the source code is executing and performs poorly compared to a native machine code program. Java is both compiled and interpreted. That is; Java source code compiles to Java byte code which is suitable for interpretation by the Java virtual machine.

It is not possible to compile a low-level source to produce a high-level output. For example, you cannot convert C to C++ using a compiler, just as you cannot convert assembly language to C. Compilers can only reduce the amount of abstraction in the source code, not increase it. If you want to add more abstraction, you need to do so manually.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

What is the practice of compiling dictionaries?

Lexicography


How long did it take Samuel Johnson to finish compiling his English dictionary?

It took Samuel Johnson around nine years to finish compiling his English dictionary.


What is the difference between compiling and interpreting?

Compiling is a form of 'gathering' information to come to a solution. Interpreting is seeing the information already presented, and then making a decision or judgment based on that. (:


Stages in data processing?

compiling and organizing information


What is a sentence with the word compile?

I was compiling work to have published.


When does a program show a compiling error?

When a program contains a compiler error, the compiler will detect it, preventing the program from compiling. Compiler errors must be fixed before a program will compile successfully.


Which part of the programming process takes the longest to complete?

compiling


Sentence for the word lexicography?

Lexicography is the practice of compiling dictionaries.


What is the present participle of compile?

Compiling is the present participle of compile.


Is only a few people work or compiling folk literature?

No, compiling folk literature typically involves a team of researchers, writers, editors, and sometimes translators. It is a collaborative effort that requires input from various individuals with expertise in different areas such as cultural studies, linguistics, and literature.


In the compiling and organizing stage you are?

letting the data determine the shape of your essay


What agency is responsible for compiling the NCVS?

Bureau of Justice Studies (BJS)