4 ms·
To what extent does something like the JRE JIT code know about processor specific details? You download a single x86 or x86_64 java binary from Oracle; I guess
by jlgreco 14y ago
To what extent does something like the JRE JIT code know about processor specific details?
You download a single x86 or x86_64 java binary from Oracle; I guess they could bake in processor specific optimizations for as many processors as they can think of at the time but I think even then the benefits of high level instructions that Linus lays out would be present. At the very least it would simplify what has to happen when a new processor comes out.
- dkarl 14y agoTo what extent does something like the JRE JIT code know about processor specific details? I honestly don't know. The most obvious thing I can think of is that it might check the L1 cache size, which I believe can be discovered even if the processor family is a new one that the JRE doesn't recognize.
- zanny 14y agocat /proc/cpuinfo. That is what the kernel says about the cpu, which is about as much info as you are going to get without some database lookup on specification data given a model number.