diffrence between compilar and interpreter
Answers
Interpreter translates just one statement of the program at a time into machine code. ... Compiler scans the entire program and translates the whole of it into machine code at once. An interpreter takes very less time to analyze the source code.
Explanation:
(◕‿◕✿) @HOPE IT'S HELP UHH✒✒
Interpreter translates just one statement of the program at a time into machine code. ... Compiler scans the entire program and translates the whole of it into machine code at once. An interpreter takes very less time to analyze the source code.
What is Compiler?
A compiler is a computer program that transforms code written in a high-level programming language into the machine code. It is a program which translates the human-readable code to a language a computer processor understands (binary 1 and 0 bits). The computer processes the machine code to perform the corresponding tasks.
A compiler should comply with the syntax rule of that programming language in which it is written. However, the compiler is only a program and cannot fix errors found in that program. So, if you make a mistake, you need to make changes in the syntax of your program. Otherwise, it will not compile.
What is Interpreter?
An interpreter is a computer program, which coverts each high-level program statement into the machine code. This includes source code, pre-compiled code, and scripts. Both compiler and interpreters do the same job which is converting higher level programming language to machine code. However, a compiler will convert the code into machine code (create an exe) before program run. Interpreters convert code into machine code when the program is run.