Well JavaScript doesn't usually compile to C++ code (it's interpreted) and C++ doesn't compile to C I believe. The product of the Java compiler is called Byte Code and is interpreted by the virtual machine.
You're correct; traditionally C and C++ both compile to assembly, which is then compiled to machine code. C++ doesn't pass through C on the way there. And since C++ and C are increasingly moving further and further apart, that almost certainly won't change anytime soon :P
Fair question, gcc or g++ compile to assembly(.s), then machine code(.o) and finally an executable (.exe). You have an option to save the .s as a separate file but it is always generated as part of the process.
6
u/zerocnc Jul 17 '18
Would it be missing byte code and object code?