🔰 Information


 💬 What is the difference between the “Compiler” and the “Interpreter”?


 The compiler and the interpreter are in fact two programs that perform the same purpose, which is to convert commands written in a high-level programming language, such as Java, C#, and C++, into machine language (commands written with binary data). Binary Data (i.e. strings of zeros and ones).


  ▫️So, if they have the same role, why is there a “Compiler” and an “Interpreter” and why not just one of them?


 Let us learn about the most important differences between the two programs, and the path they both take in order to convert high-level instructions and commands (also called the source program) into commands written in machine language.


 🔸 Compiler:

 From his name, it is clearly clear that he performs the translation process. He examines the entire program written in the programming language, then translates it into a program written in machine language so that the data processing unit (CPU) can execute it, and the errors in the source program are not shown until after the process is completed. Convert it to machine language.


 🔸 Interpreter:

 It performs almost the same role as the translator, with a slight difference, which is that the interpreter does not convert the source code directly into machine code, but rather converts it into an intermediate language (intermediate code). After that, each part of the resulting code is converted into machine language. These parts are then executed one by one (Statement by statement), and any command containing an error leads to stopping the process of converting the remaining parts.


 Add your information. .

 #info #programming #cybersecurity #networking 

Comments