What is the difference between high level language and machine code
Compare this simple Python program with its comments that are written in English:. Programmers write in high-level languages because they are easier to understand and are less complex than machine code. They allow the programmer to focus on what needs to be done, rather than on how the computer actually works.
For example, in many high-level languages, to place a message on the screen, a programmer would use the statement ' print '. The programmer might not know how the computer actually generates the message. They just need to know how to use the ' print ' statement. It needs assembler for translation. It is used widely for programming. It is not commonly used now-a-days in programming. Previous Difference between Compiled and Interpreted Language.
Recommended Articles. Article Contributed By :. Easy Normal Medium Hard Expert. Writing code in comment? Please use ide. Load Comments. What's New. Most popular in Compiler Design. Most visited in Difference Between. Middle-level language is a computer language in which the instructions are created using symbols such as letters, digits and special characters.
Assembly language is an example of middle-level language. In assembly language, we use predefined words called mnemonics. 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. Assembler is a translator which takes assembly code as input and produces machine code as output.
That means, the computer cannot understand middle-level language, so it needs to be translated into a low-level language to make it understandable by the computer.
0コメント