hotspot Zero for iOS
Julian Waters
tanksherman27 at gmail.com
Mon Dec 16 06:22:15 UTC 2024
Hi,
I'm a little puzzled, mobile has a Pull Request for iOS at
https://github.com/openjdk/mobile/pull/30 which uses the minimal
variant. How is minimal possible on iOS since it includes C1 and the
assembly based Interpreter? Or has that one been dropped in favour of
Zero on iOS instead, as the current post seems to imply?
On the topic of Android, I also remember hearing that all Android
applications, even ones written in C or C++, are actually Android
Runtime apps and all run in the same Android Java VM (Native C and C++
code simply becomes a shared library that is loaded through JNI). I
don't know how true that is since my knowledge of mobile operating
systems, including Android, is rather spotty, but if there really
isn't a way to run an application as a fully native and standalone one
on Android and everything is actually in a Java VM under the hood, how
would the JDK fit on an Android device? Sounds to me like the Java
executables and HotSpot itself would end up ironically running inside
a Java VM, which would probably destroy performance to an epic degree,
among a host of other issues that will likely be present as a result
of this.
Lastly, how can the mobile port be compiled? What environment is
required? Since iOS seems to be the only working one at the moment,
I'm guessing Xcode? There's no instructions in building.md for either
iOS or Android, and I would submit an enhancement to include
instructions for both, but currently I myself am not sure where to
start even compiling the JDK for mobile devices. It might be helpful
to share that information in the docs files.
best regards,
Julian
More information about the mobile-dev
mailing list