Execution of High-Level Languages
There are three ways in which high-level languages can be executed
Interpreted
In this there is a program called an interpreter, its task is to read the code written in high-level language understand the program flow, and execute it. It just executes it or performs instructions in it without compiling. This happens in the case of interpreted languages such as Python, Ruby, and JavaScript
Compiled Languages
This is a little different from interpreted languages, in this first the code is transformed into an executable code, in machine language. Two ways of compilation are there first is by machine code generation other is by Intermediate representation.
- Machine code generation- In this, the code is compiled by compilers into machine code then they are executed.
- In intermediate representation, the code is first, compiled to intermediate representation which is saved so that there is no need to read the source file again. When it’s saved it forms a byte code that can be executed by the machine.
some compiled languages are C, C++, and Java.
Transcompile Languages
This is also known as Source-to-source translation Because in this the source code of one language is converted into the source code of another programming language. This is done so that code can be used for multiple platforms. Some transcompile languages are TypeScript, CoffeeScript, etc.
What is High Level Language?
Computer languages have a huge importance in the digital world. If you want to create anything such as an application, website, software, or game you need to write it using a coding language, which is most probably a high-level language because they are easier to use and understand by humans. In this article, we will understand what is a high-level language. Its types use, advantages and disadvantages