I’m reading through an interesting book: “Write Great Code: Volume 2: thinking Low-Level, writing High-Level” by Randall Hyde. It’s more for compiler-based languages like C & Pascal, but there are occasional references to Java.
One interesting point they make over and over is that using a compiler doesn’t guarantee the highest level of performance (even though compilers and presumably the JVM as well are continuing to improve). So if there is a stat that Java produces code that is 80% of native, what % does the compiler produce, compared to writing in assembly directly rather than using a compiler-based higher level language?
It seems at the end of the day, there is a big variance in coding depending upon knowledge of underlying machine, and whether one comes up with algorithms that take advantage. My knowledge there is kind of weak. It’s been a long time since I wrangled with 8080, Z-80, PDP-11, that kind of stuff, so this is a refresher, to say the least.
@sproingie - I appreciate the blog reference to “Mechanical Sympathy: Hardware and Software working together”. This looks like a bunch of great info right on this topic.