DIFFERENCE BETWEEN INTERPRETER AND A COMPILER
DIFFERENCE BETWEEN INTERPRETER AND A COMPILER – Both the interpreter and the compiler do the work of an interpreter, that is, they translate a high level of language into a computer-understood machine language.
But there are many differences in the way the two work. In a small computer, the interpreter is permanently attached to the other electrical circuits of the computer.
The compiler, however, is usually stored on a floppy disk. It is stored in the computer’s memory whenever necessary.
COMPILER VS INTERPRETER
The compiler is given a high-level language source program, which first converts all that program into an object program, that is, into machine language.
The interpreter does not do that. It reads every sentence in a high-language program, ie instructions, and translates only that sentence into machine language, and then immediately executes that sentence.
If an interpreter is used in this way, each line is converted into machine language while all the programs are being implemented as instructed.
Since the interpreter, like the compiler, does not generate programs in the entire machine language at the same time, of course, it consumes much less computer memory than the compiler.
Basic languages use interpreters rather than compilers. That’s why she needs less computer memory. Not so with languages like FORTRAN, COBOL.
Their translation into machine language depends on the compiler. The compiler is also a bit difficult to handle. Basic is another important reason why the language is so popular.
Although the printer is easy to use, it has some disadvantages. The speed and efficiency of the compiler is much higher than that of the interpreter.
Because the object program created by the compiler is completely in machine language, it can be executed quickly.
On the contrary, the interpreter converts each line into a machine language before implementing any instructions.
Of course, it takes him a long time to implement all the programs. An intelligent student frees himself by solving all the mathematical terms in his mind, putting his answers on a piece of paper.
Once the compiler creates an object program, it can be stored permanently on a floppy disk. For that particular program, you don’t have to re-translate into machine language.
Give the computer that program and new data that you get the answer in a moment. The interpreter, however, has to translate each line over and over again.
Although the interpreter’s efficiency and speed are low, it is very convenient to use. That is why interpreters have recently become available for languages like FORTRAN, COBOL, etc.
- FIRST GENERATION COMPUTER: ENIAC COMPUTER | EDSAC AND EDVAC COMPUTERS | VON NEUMANN
- HISTORY OF COMPUTING | WHO INVENTED THE MODERN COMPUTER?
- ENIAC COMPUTER – HISTORY, FEATURES, SPECIFICATIONS, SIZE, COMPARISON
- GENERATIONS OF COMPUTING | WHAT ARE COMPUTER GENERATIONS
- TYPES OF COMPUTER SYSTEM | ANALOG, DIGITAL, HYBRID
- ADVANTAGES OF COMPUTER | WHAT ARE ADVANTAGES OF COMPUTERS
- WHAT IS DATA? DATA: DEFINITION, EXAMPLE, ELECTRONIC DATA PROCESSING
- WHAT IS COMPUTER PROGRAM? DEFINITION, EXAMPLE
- OPERATING SYSTEM IN COMPUTER | DEFINITION, NEED, FUNCTIONS, WORKING
- TYPES OF PROGRAMS IN COMPUTER | TYPES OF PROGRAMS IN OPERATING SYSTEM
- TYPES OF OPERATING SYSTEM IN COMPUTERS | HISTORY OF OPERATING SYSTEM
- HISTORY OF UNIX OPERATING SYSTEM | FEATURES OF UNIX OPERATING SYSTEM
- WHAT IS A COMMAND LANGUAGE? USE OF COMMANDS IN COMMAND LANGUAGE
- MULTITASKING IN COMPUTER | DEFINITION, USE, EXAMPLE
- MICROPROGRAM IN COMPUTER | DEFINITION, FUNCTION, PROM, AND E-PROM
- WHAT IS A SOFTWARE | MEANING | DEFINITION | TYPES OF SOFTWARE
- GENERAL PURPOSE COMPUTER AND SPECIAL PURPOSE COMPUTER
- WHAT IS HARDWARE IN COMPUTER | DEFINITION | EXAMPLE | IMPORTANCE
- WHAT IS AN ALGORITHM | DEFINITION | MEANING | EXAMPLE | RULES OF ALGORITHM
- BASIC PRINCIPLE OF COMPUTER OPERATION | DIAGRAM
- WHAT IS MACHINE LANGUAGE IN COMPUTER | DEFINITION
- WHAT IS AN ASSEMBLY LANGUAGE | DEFINITION | DISADVANTAGES
- HUMAN AND COMPUTER COMPARISON
- WHAT IS HIGH-LEVEL LANGUAGE IN COMPUTER | DEFINITION | FUNCTION
- WHAT IS A FLOWCHART | HOW TO DRAW FLOWCHART | FLOWCHART SYMBOLS
- SPEED OF COMPUTER | EQUATION | METRICS | COMPUTER WORK IN THE SECOND MEASUREMENT
- WHAT IS INTEGRATED CIRCUIT | DEFINITION OF IC | USE | EXAMPLE
- WHAT IS ASCII | ASCII TABLE | PURPOSE OF ASCII
- BIT AND BYTE DIFFERENCE | SIZE COMPARISON
- WHAT ARE BINARY NUMBERS | EXPLAIN BINARY NUMBER SYSTEM
- HOW TO DECIMAL TO BINARY CONVERSION | DECIMAL NUMBER TO BINARY CONVERSION
- WHAT ARE LOGIC GATES | TYPES OF LOGIC GATES | DEFINITION | FUNCTION
- HOW TO CONVERT NUMBER INTO HEXADECIMAL NUMBER | CONVERT INT INTO HEX
- WHAT ARE COMPUTER MEMORY | TYPES OF COMPUTER MEMORY | RAM AND ROM
- KEY COMPONENTS OF A COMPUTER | MAIN COMPONENTS OF CPU
- WHAT IS ARITHMETIC AND LOGIC UNIT | COMPONENTS AND FUNCTION
- FUNCTION OF CONTROL UNIT OF A COMPUTER SYSTEM
- WHAT IS A MICROPROCESSOR | USE OF MICROPROCESSOR
- MICROCOMPUTER MINICOMPUTER AND MAINFRAME COMPUTER
- WHAT IS INTERFACE IN COMPUTER SYSTEM
- MAIN TYPES OF HIGH-LEVEL LANGUAGES
- WHAT IS GIGO (GARBAGE IN GARBAGE OUT) | EXPLAIN GIGO
- WHAT IS COBOL | EXPLAIN COBOL LANGUAGE | FEATURES OF COBOL
- HOW TO WRITE A PROGRAM | STEPS OF WRITING A COMPUTER PROGRAM
- WHAT IS FORTRAN | FEATURES OF FORTRAN | VERSIONS OF FORTRAN
- WHAT IS BASIC (BEGINNERS ALL-PURPOSE SYMBOLIC INSTRUCTION CODE) | FEATURES OF BASIC LANGUAGE
- INTERNAL WORKING OF COMPUTER
- WHAT IS PASCAL LANGUAGE | FEATURES OF PASCAL | TYPES OF PASCAL
- WHAT IS WORDSTAR IN COMPUTER | WORDSTAR COMPUTER PROGRAM
- GENERATIONS OF LANGUAGES IN COMPUTER SYSTEM
- WHAT IS LOTUS 1-2-3 | FEATURES AND PURPOSE OF LOTUS 1-2-3 | HISTORY
- WHAT IS ‘C’ LANGUAGE | IMPORTANCE | HISTORY | FEATURES
- USE OF A COMPILER | WHAT IS A COMPILER | WORKING OF COMPILER