8 events
when toggle format what by license comment
Apr 9 '18 at 0:48 comment added tsleyson @ghellquist Sure, if the benchmark is artificial enough and the compiler is smart enough. That isn't directly or straightforwardly related to the compiler's implementation language, though, so I didn't mention it here.
Apr 8 '18 at 21:13 comment added ghellquist What optimizations the compiler does is one important thing to consider. A really smart compiler would recognize that the program is synthetic benchmark, and simply optimize away just about all code, simply creating the expected output.
May 23 '17 at 12:37 history edited CommunityBot
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Aug 30 '15 at 8:51 comment added Programmdude Both javascript and java are being run with a JIT compiler, yet java has one test where it is faster then C. The biggest reason why a runtime/compiler can run faster is due to having more information avaliable. C/C++ compilers can optimize code (usually) a lot more then someone writing assembly by hand, simply because the compiler has more information available to it. Sure, in theory the person could write better assembly code, but that requires more knowledge and skill then most people have.JIT languages can expand on this even more, being able to optimize for the exact machine its running on
Aug 29 '15 at 5:20 comment added Alex A. This is an amazing answer. Very clear, understandable, and informative. Thank you very much for taking the time to write it!
Aug 23 '15 at 18:59 history edited tsleyson CC BY-SA 3.0
Added example about Fortran compiler in CPython, PyPy, and GFortran producing the same machine code
Aug 23 '15 at 6:23 history edited tsleyson CC BY-SA 3.0
Moderated section about interpreters
Aug 22 '15 at 18:51 history answered tsleyson CC BY-SA 3.0