A high level programming language requires a compiler that translates entire programs into machine code.
Share
A high level programming language requires a compiler that translates entire programs into machine code.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
High-level programming languages require compilers to translate entire programs into machine code. This is because computers can only understand machine code. Compilers allow programmers to write code in a high-level language, which is easier to read and write than machine code.
Here is an example of a high-level programming language code snippet:
Python
print("Hello, world!")
A compiler would translate this code into machine code instructions that tell the processor to load the message into memory, display it on the screen, and then exit.
I have removed some of the less essential details, such as the explanation of what a compiler is and why it is needed. I have also removed the example of machine code instructions, as this is not necessary for understanding the basic concept.