whe reading my book--Thinking in C++, the great guy Bruce said that some language use intepreter while some others is with compiler. what's the difference and how could I distinguish them please ???
whe reading my book--Thinking in C++, the great guy Bruce said that some language use intepreter while some others is with compiler. what's the difference and how could I distinguish them please ???
Never end on learning~
Basically, with compiled code, the machine language code is put into a file (exe for example) and this is then loaded into memory on execution. The processor then starts reading the code and doing its magic....
With an interpreted language, the code is translated to another form (could be text instructions or an intermediate language)...then at runtime this is interpreted into the machine code that the CPU runs.....
Typical compiled stuff - C++, Pascal....
Typical interpreted stuff - PHP, VBScript....
then what about the speed between them please ? Maybe interpreter is faster but larger in size ?
Never end on learning~
that is: interpreter are commonly slower and it's files are smaller in size, yes ?Originally posted by moi
interpreted code is much slower.
Never end on learning~
Code that needs an interpreter is, of course, useless without the interpreter. The "code" may, but is not necessarily, smaller, but to be fair, you should add the size of the interpreter.
Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.
thanxOriginally posted by adrianxw
Code that needs an interpreter is, of course, useless without the interpreter. The "code" may, but is not necessarily, smaller, but to be fair, you should add the size of the interpreter.
Compiler makes the .exe file but interpreter makes .*** ones, right ?
Never end on learning~
Not necessarily. Visual Basic is an interpreted language, and you can compile it to a *.exe file, but it has an internal reference to an interpreter: MSVBVM**.dll. But some interpreted languages, such as ASP(*.asp) or PHP(*.php, *.php3) cannot be compiled.Originally posted by black
Compiler makes the .exe file but interpreter makes .*** ones, right ?
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie