answersLogoWhite

0


Best Answer

Machine languages are the low-level native languages of machines and each machine has its own variant of machine language specific to the machine architecture. Physical machine languages are known as machine code while virtual machine languages are known as byte code. Unlike machine code which requires no further translation, byte code must be interpreted by the virtual machine runtime in order to produce the required machine code of the underlying hardware.

Machines do not understand high level programming languages, but they can be programmed to compile high-level source code into a lower-level code. For instance, C and C++ compile to machine code while Java compiles to byte code which is then interpreted by the Java virtual machine to produce the required machine code.

Assembly language (ASM) is a low-level symbolic code that translates near 1-to-1 with machine code but, unlike high-level languages which are generally portable, assembly languages are specific to the architecture and therefore non-portable.

Machine code is an extremely simple language, consisting of a text segment and a data segment. The text segment contains the operation codes (opcodes) and their associated operands, both of which are binary encoded. The operands are typically CPU registers or offset memory addresses. A data segment contains the code's static data (global variables, static variables and constants).

Being non-portable, machine code will only execute upon the machine types for which it was specifically intended. However, some architectures make use of microprograms to facilitate a common machine language interface across a line or family of processors. Microcode layers can also be used to implement an emulator which allows one computer to present the architecture of a different computer. This can be used to allow porting from older machines to newer machines.

Being machine specific, machine languages don't have names of their own (unlike high-level languages like C++ and Java), they are simply named according to the architectures to which they apply. Thus an Intel architecture 32-bit 80386 processor uses machine language that conforms to IA-32 assembly, also known as x86-32 assembly, which is a 32-bit extension to the original 16-bit Intel x86 architectures used in 8086-80286 processors.

User Avatar

Wiki User

βˆ™ 7y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

βˆ™ 13y ago

A machine language is a series of 0 and 1 bits (binary code) that instructs the computer how to operate. There are as many examples of machine languages as there are different models of machines.

Common examples include x86 instructions (for Intel, AMD, and compatible processors), Motorola (cell phones), RISC (for the various RISC processors out there, including ARM processors in many modern game consoles), and even custom machine code for embedded systems.

Machine languages are not compiled languages (such as C++) nor assembled languages (namely, ASM or Assembler). All languages are (eventually) converted into machine language, and it is that language that is understood by the processor directly. The "microcode" within the processor executes the directions encoded in each instruction in the machine language in order to perform the desired task.

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What are machine languages and example?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Examples of machine language?

Machine code is the ONLY example of machine language. However, every machine architecture has its own version of machine code; it is the native language of the machine. If you want to examine machine code upon your own machine, use a hex editor. This will show you every byte of the code in hexadecimal form.


Is the First Generation Language machine dependent?

Yes. Both first and second generation languages are machine-dependent. The first generation of languages were machine code, while the second were assembly languages. Non-machine dependency came about with the advent of the third-generation of languages, all the high-level languages.


Types of programming language that is machine independent?

FORTRAN (FORmula TRANslator) is the best-known earliest example of machine independent language. This is where the language is not dependent on the characteristics of the computer. COBAL (COmmon Business-Orientated Language) is the other type of programming language that is machine independent. COBAL was developed by the US Navy for business applications.


What are high level programming languages how they differ from assembly languages?

High-level languages are easy to read and write. They are not machine dependent and portable from one computer to another. Assembly languages are machine dependent, easier to read than machine code but it's still not easy to read, and the assembler program translates the assembler program straight into machine code.


What are example of second generation programming language?

Machine code is first generation. Low-level, machine-dependent, symbolic languages such as assembly language are second generation. All high-level, machine-independent languages are third generation. Fourth and fifth generation don't actually have any meaning since there is no "standard" to define these terms, although they are often used to classify specific types of third-generation languages.

Related questions

Platform independent languages?

That refers to programming languages, and specifically to languages that run on many different platforms. An example is Java, which runs on any machine and operating system that has a special program (the JVM, Java Virtual Machine) designed for that "platform".


Examples of machine language?

Machine code is the ONLY example of machine language. However, every machine architecture has its own version of machine code; it is the native language of the machine. If you want to examine machine code upon your own machine, use a hex editor. This will show you every byte of the code in hexadecimal form.


What is an example of a programming language that does not require the programmer to know machine language?

C++ and Visual Basic are computer languages that do not require the programmer to know machine language.


Is the First Generation Language machine dependent?

Yes. Both first and second generation languages are machine-dependent. The first generation of languages were machine code, while the second were assembly languages. Non-machine dependency came about with the advent of the third-generation of languages, all the high-level languages.


What does platform-independent language?

That refers to programming languages, and specifically to languages that run on many different platforms. An example is Java, which runs on any machine and operating system that has a special program (the JVM, Java Virtual Machine) designed for that "platform".


what are Examples of machine languages?

Machine code, Assembly, Autocode


Types of programming language that is machine independent?

FORTRAN (FORmula TRANslator) is the best-known earliest example of machine independent language. This is where the language is not dependent on the characteristics of the computer. COBAL (COmmon Business-Orientated Language) is the other type of programming language that is machine independent. COBAL was developed by the US Navy for business applications.


What are high level programming languages how they differ from assembly languages?

High-level languages are easy to read and write. They are not machine dependent and portable from one computer to another. Assembly languages are machine dependent, easier to read than machine code but it's still not easy to read, and the assembler program translates the assembler program straight into machine code.


Similarities between compiler interpreter assembler?

Both are use to convert high level languages into machine language


What are example of second generation programming language?

Machine code is first generation. Low-level, machine-dependent, symbolic languages such as assembly language are second generation. All high-level, machine-independent languages are third generation. Fourth and fifth generation don't actually have any meaning since there is no "standard" to define these terms, although they are often used to classify specific types of third-generation languages.


What is the level of assembly language?

Assembly languages are low level languages, sometimes also called machine-level languages.


Is the C language machine dependent or not?

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