Sometimes referred to as machine code or object code, machine language is a collection of binarydigits or bits that the computer reads and interprets. Machine language is the only language a computer is capable of understanding.
The exact machine language for a program or action can differ by operating system on the computer. The specific operating system will dictate how a compiler writes a program or action into machine language.
Computer programs are written in one or more programming languages, like C++, Java, or Visual Basic. A computer cannot directly understand the programming languages used to create computer programs, so the program code must be compiled. Once a program's code is compiled, the computer can understand it because the program's code has been turned into machine language.
Machine language example:
Below is an example of machine language (binary) for the text "Hello World".
Below is another example of machine language (non-binary), which will print the letter "A" 1000 times to the computer screen.
Also See : Assembly language, Binary, Compilation, High-level language, Low-level language, Machine-readable, Object file, Programming terms, Pseudolanguage, Special purpose language
No comments:
Post a Comment