Basically How a Compiler and Interpreter Work, Any improvement welcomedOctober 18 2004 at 12:38 PM
|Iain (no login)|
A compiler and interpreter both work with the same basic principle:
The program to be compiled or interpreted is loaded or typed. It is in source code form at this point. The program is run in an interpretor, (F5 in QB and other M$ interpretors).
The interpretor converts each instruction into machine code, 1s and 0s, and sent to the processor. The processor executes the instructions.
A compiler does the same, except instead of simply running the program, the program is saved in machine language form so that the interpretor could be left out.
This is how a QB .exe is formed. The .exe is simply executed (nae killed, run).