3 ms·
So the multidex issue I was referring to makes it pretty hard to write things that will compile to C with the NDK. In order to get any access to the Android AP
by rtpg 10y ago
So the multidex issue I was referring to makes it pretty hard to write things that will compile to C with the NDK.
In order to get any access to the Android APIs, you have to do C-JDK bridging through JNI. And in android VMs, there's a hard limit on the number of symbols you can reference in the lifetime of an app.
It's the equivalent of if python was like "yeah you can use the standard library, but only up to 100 functions!"
iOS, since it goes through the LLVM framework stuff, doesn't have that many barriers to transpiling from other languages. You can just do raw function calls to the OS libs. But Android doesn't allow this, forces you to go through the JNI, and makes you have to work around this symbol limit.