4 ms·
Every language you listed (except Go, which tries very hard for the fast compilation times) just compiles to bytecode and runs on a virtual machine later. This
by lunixbochs 15y ago
Every language you listed (except Go, which tries very hard for the fast compilation times) just compiles to bytecode and runs on a virtual machine later. This can be considered a much simpler task than compiling to machine language directly.
When you use a virtual machine, much of the machine code required to execute the resulting program has already been compiled. Some languages/runtimes also use a JIT to compile code at runtime instead of build-time.
- chc 15y agoWhy is it necessarily much simpler to generate bytecode than machine code? Aren't they basically the same thing except one is run by a virtual machine and the other by a real machine?
- karussell 15y agoYeah, would be interesting for me as well :) !!
- wglb 15y agoOk, you made me throw in Lisp now. SBCL compiles directly to machine code. It does not have separate include files.