News for hackers. Stuff that matters.
Re:How to Compile Java into Native Binaries with Mill and Graal by sgammon on Tuesday February 04, 2025 @06:00AM (#42930862)
Also, I don't believe this is fully true. GraalVM depends on the underlying C compiler to generate native code, so if properly configured with target triples and flags (just like any cross-compiling setup) it should work.
Re:How to Compile Java into Native Binaries with Mill and Graal by gf000 on Thursday February 06, 2025 @01:40AM (#42959716)
GraalVM reuses the normal java class loading logic which is platform-dependent. So e.g. on windows it will load some windows-specific File subclasses and the like, so this is more of an architectural problem to a certain degree.

(It really does loadClass everything reachable based on the code to be compiled)