answersLogoWhite

0


Best Answer

The way you stated your question is rather confusing, but what I think you're asking is, "are programs written in high level languages called compiled programs?"

Well, not all high level languages are compiled. Python, for example, is interpreted, instead of compiled. Many, such as C++ (although that is more medium level) are compiled. In general, one would not call a program written in a compiled language a "compiled program" until it's been compiled.

User Avatar

Wiki User

14y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

13y ago

No.

All programs have to be converted to machine code to run.

An interpreter does the conversion at every run time and a compiler does the conversion ahead of time, producing an executable program that may be run many times.

This answer is:
User Avatar

User Avatar

Wiki User

7y ago

High-level source code is converted to low-level machine code using software. These software programs are known as compilers or interpreters. An interpreter is a program that translates a high-level source into machine code at runtime. That is, the code must be translated each and every time it is executed by the interpreter. Interpreted software does not perform very well compared to native machine code equivalents, however the exact same source can be executed upon any machine with a suitable interpreter. Machine code programs can only be executed upon the machine architecture for which they were intended.

A compiler is a program that takes a high-level input and produces a lower-level output. The lower-level output may be machine code itself, however compilers can also be used to create an assembly language source, a byte code source, or even another high-level language source (albeit one with fewer abstractions than the original source). It is not (yet) possible to convert a low-level source to a high-level source; machines simply aren't yet capable of the "thought processes" required to produce ad-hoc abstractions in the same way a human can.

High-level languages are generally classified as being interpreted or compiled languages depending on how they are converted, however there's really no practical reason why an interpreted language cannot be compiled or why a compiled language cannot be interpreted; we simply need to write the appropriate software to perform the conversion we require.

Java is conventionally regarded as being a compiled language, however in reality it is both compiled and interpreted. The reason is that the source code is compiled against a virtual machine rather than a physical one. The "virtual machine code" produced by the Java compiler is known as Java byte code. This byte code is suitable for interpretation by any Java virtual machine (JVM). This has several advantages over traditional interpreted languages in that byte code can be interpreted with much greater efficiency than the original source code could; most of the hard work is carried out by the compiler.

C and C++ are conventionally regarded as being compiled languages, both being capable of producing native machine code and/or an assembly language source. However, C++ didn't start out that way; having evolved from C, the original C++ compiler produced a C language source which then had to be compiled by the C compiler.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

It depends on whether the source is compiled, interpreted or both.

An interpreted program is one that is converted to machine code by a runtime program known as the interpreter. Typically, the program's source code is parsed by the interpreter and translated into the required machine code, one statement at a time. Interpreted programs do not perform well because there is little or no optimisation of the code and the same statements need to be re-interpreted every time they encountered.

A compiled program is one where the entire program is converted to machine code. Compiled programs perform extremely well because the compiler can optimise the code to take full advantage of the underlying hardware features. C++ is a typical example of a compiled programming language. Compilation begins with a precompilation stage which processes the macro definitions and precompiler directives in each translation unit, pulling in headers and performing text replacements to produce intermediate source files. These intermediates are then compiled to produce object files. Finally, the object files are linked together with any required external libraries to produce the final executable. Although C++ source code is highly portable, the source code must be recompiled separately upon each target platform.

Java is both compiled and interpreted. The Java compiler produces byte code which is suitable for interpretation by the Java Virtual Machine (JVM). The byte code is the same regardless of which physical platform you perform the compilation on, thus compiled Java programs are highly-portable. The JVM performs the low-level interpretation of the byte code to machine code.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Compile into object code that is then linked into executable machine code.

This answer is:
User Avatar

User Avatar

Wiki User

9y ago

A special program is invoked to do that. Such a program is called an assembler (for assembly language), or a compiler (for most languages).

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How program written in high level language changed into machine code?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


What is the process of writing specific instructions in computer language called?

A machine code program. Machine code is the native language of the machine and the only language actually understood by the machine. However, program instructions can be written using a high-level programming language that the computer can translate into machine code using another machine code program called a compiler.


What is an Program compilation?

That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.


What is a program written in high level language called?

the program written in high level language is called "source program"


Why do need translate a program written a high level language into machine language?

the reason why we translate is that source code may be in assembly( low level language) or high level language and the only language computer understand is 0s and 1s which is binary code so the program written in either assembly or high level language must be convert or translate to binary and program written in HLL are in English form while the assembly are equivalent machine language.

Related questions

What is assembly program?

An assembly program is a machine-dependent program written in a low-level symbolic code known as assembly language.


What is the process of writing specific instructions in computer language called?

A machine code program. Machine code is the native language of the machine and the only language actually understood by the machine. However, program instructions can be written using a high-level programming language that the computer can translate into machine code using another machine code program called a compiler.


Is assemmbly language machine dependent If so then why.?

Yes! assembly language is machine dependent. Because program are written by means of memory and register on computer thats are very effective, and also have not high level skill in the program.


What is an Program compilation?

That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.That means to convert the original program - the source code, written by a programmer - into machine language, or into an intermediate form, for example, Java bytecode in the case of Java.


What is language translator program?

This is usually the first stage in compilation. The source code is read and checked for syntax and usability then passed to the compile stage to be converted to object (or machine) code that the computer can understand.Translator translates program written in one programming language into (equivalent) program written in another language. For example, Java to C# translator would translate Java program into (equivalent) C# program. This is similar to as if you would translate some text in English into Spanish or vice versa.If target language is lower level language like assembly language, machine language, or pseudocode, translator is called compiler. For example, some C++ compiler could compile (translate) program in C++ into machine code.


What is translator in computing?

Translator is defined as a computer program that converts instructions written in one language to another without changing the initial logic in terms of computer language.


What is source code c?

"Source code", in a programming language, refers to the original program, as written by a programmer (and more or less readable by humans); the version of the program before it is converted into machine language by the compiler.


What is a program written in high level language called?

the program written in high level language is called "source program"


What has the author Stefan Dittrich written?

Stefan Dittrich has written: 'Visual Basic Now!' 'Amiga machine language' -- subject(s): Amiga (Computer), Assembler language (Computer program language), Motorola 68000 (Microprocessor), Programming


Why machine language program written from one computer will not run on another computer with different CPU?

I'm assuming it has to do with the architecture of the CPU.


What is Translator Programs?

This is usually the first stage in compilation. The source code is read and checked for syntax and usability then passed to the compile stage to be converted to object (or machine) code that the computer can understand.Translator translates program written in one programming language into (equivalent) program written in another language. For example, Java to C# translator would translate Java program into (equivalent) C# program. This is similar to as if you would translate some text in English into Spanish or vice versa.If target language is lower level language like assembly language, machine language, or pseudocode, translator is called compiler. For example, some C++ compiler could compile (translate) program in C++ into machine code.


The Language of Computers Programs are written in?

machine language