read: Top 10 AngularJS Alternatives
First, let’s understand the difference between a compiler and an interpreter. As web developers may know, computers only understand 0’s and 1’s (think of them as simple on/off switches). Therefore, all computer programs must eventually be translated into machine code. This task is performed using a process called compilation or interpretation. The following sections describe each of these processes.
What is compilation in programming
At compile time, the entire source code is converted into machine code at once. Machine code is written in portable files that can be run anywhere, regardless of platform or operating system. The code compilation process involves two steps. The first step builds the machine code and the second step runs it on your machine.
Machine code execution occurs immediately after compilation. For example, all the applications you use on your computer today were originally compiled and ready to run on your computer.
What is Interpretation in Programming?
On the other hand, during interpretation, the interpreter executes the source code, executing it line by line. Unlike compilation, which is a two-step process, interpretation involves reading and executing code. at the same timeOf course, the source code must be translated into machine language, but the translation of the code does not happen ahead of time, but just before execution.
What is just-in-time compilation?
How does just-in-time compilation (JIT) work?
here, constant named variable value given value 45As you can see on the .AST tree side, there is a lot of additional code beyond the declaration. Can you imagine all the extra code generated in a large application?