2 ms·
"Why ship DEX proprietary bytecode to be compiled by the same compiler in the same way on hundreds of millions of devices to produce the same output? " Because
by DannyBee 12y ago
"Why ship DEX proprietary bytecode to be compiled by the same compiler in the same way on hundreds of millions of devices to produce the same output?
"
Because it isn't, or maybe it won't be?
Think very hard about this.
You use your device in different ways than the next guy. If someone did profile collection on the device, and then fed that back into the compiler, you'd get a different executable than the other guy.
Also, building and shipping N hundred binaries from the play store seems like a recipe for disaster.
In fact, i'd strongly argue doing it any other way is plain bonkers.
- on_and_off 12y agoAnother advantage is that you will not need to recompile your app for 64 bits architectures or whatever new chip arrives in the future. It is already compatible. You also don't have to worry about the SOC when sending an apk, the system will make sure to compile it.