answersLogoWhite

0


Best Answer

Compilers or interpreters translate high-level code to machine language. Interpreted languages require a runtime to perform the conversion when the high-level code is executed whereas compiled languages are typically compiled to native machine code which requires no further translation. However, some languages compile the high-level code to an intermediate code known as byte code which is then interpreted to produce the machine code. This is typically done to improve performance, because it is quicker to interpret byte code than it is to interpret high level code (primarily because the byte code is more compact). Also, the byte code need only be compiled once but can be execute on any machine with a suitable interpreter. Java is a typical example of this (compiled Java byte code can be interpreted by the Java virtual machine on any physical machine). While this greatly improves performance and portability, the need for a runtime means the language is not suitable for general purpose programming (such as operating system kernels, device drivers, subsystems and so on), it can only be used to develop applications software. Despite the improved performance, compiled native machine code programs will always perform better than interpreted byte code. And although native machine code programs are not portable (they are machine-specific), the high-level source can be portable, it simply needs to be recompiled.

User Avatar

Wiki User

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

Wiki User

11y ago

Instructions are converted to machine language by a compiler.

Compiler is a software that translates your program written in any high level language into machine language.

If you are asking that "how compiler does this task?" Do mention here. It's a separate discussion.

-Manu-

This answer is:
User Avatar

User Avatar

Learn bay

Lvl 8
2y ago

Binary code instructions in low-level language are replaced with mnemonics and operands in middle-level language. But the computer cannot understand mnemonics, so we use a translator called Assembler to translate mnemonics into machine language.

To learn more about data science please visit- Learnbay.co

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

Compilation.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: How are instructions converted to machine language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How are high speed language converted into machine instructions?

There is no such thing as a high speed language in computing.


State the differences between machine language and assembly language?

Assembly language is a readable way of representing machine language. It consists of mnemonics that can be directly converted to machine language. Assembly language allows easier jump instructions with the usage of labels which gets converted to real addresses after assembling.


High level to Machine level language is converted using?

high level language is converted to machine level language using a compiler or an interpreter


What does machine language code look like?

Machine language is the computer instructions in memory--the actual bits used by the machine hardware or microcode interpreter. To "look" at it, it has to be converted to a human-readable form. Often, it is printed as a sequence of hexadecimal numbers, usually tagged with the memory address. Sometimes it is processed by a disassembler program, which tries to translate the code into assembly language instructions and data. This is not always successful since in machine architectures that mix data and instructions, it can be difficult to determine which program areas are data and which are instructions.


What application will be used to convert an assembly language source program into machine language?

An Assembler converts assembly language instructions into machine language.


Is the C language machine dependent or not?

Machine-dependent (generally called "platform-dependent")


What is compiler and assembler?

Both, compiler and assembler, are software tools which translate instructions written in a programming language into executable machine code. (Both will typically require additional tools, such as a linker, in the process.) An assembler recognizes a machine-specific assembly language. This is a low-level language with a one-to-one relationship between language (assembly) instructions and machine code instructions. A compiler recognizes a generally machine-independent language such as the C programming language. These are higher level languages compared to the assembly languages, generally offering a one-to-many relationship between language instructions and expressions, and the resulting machine code instructions.


What are the five examples computer language?

Machine code, assembly language, COBOL, FORTRAN and C. Machine code is the only language that is native to the machine. All others must be converted to machine code.


What is the readable language to computer?

Computers use machine language, which are coded instructions in binary.


With a given source statement may be converted to any number of machine-level instructions?

With a COMPILER,


A given source statement may be converted to any number of machine-level instructions with what?

Compiler


One instruction in high level language corresponds to one instruction in machine language?

No. Generally, one instruction in a high level language corresponds to many instructions in machine language.