+ 3

Why I have to compile or build c++ programs before I can run them?

I just wondered what's the magic behind the c++ compiler and why I don't have to compile for example java?

10th Nov 2017, 5:46 AM
Roabs
Roabs - avatar
2 ответов
+ 6
Java is also compiled, but it's compiled to byte code instead of native machine code at compile time. At runtime the JVM will use its JIT compiler to compile the byte code to native machine code if applicable.
10th Nov 2017, 6:00 AM
aklex
aklex - avatar