Produced binaries are still rather large... 2MB fo...
# kotlin-native
j
Produced binaries are still rather large... 2MB for hello world in MIPS, for example
o
Please use -opt switch
👍 1
j
I am. Built with Gradle enableOptimizations, results in -opt switch being used with konanc
These outputs aren't fully stripped, just debug-stripped I've noticed as well. That doesn't make that big a size difference for MIPS though. A proper strip does reduce mingw size by about half from 600kb to 300kb. Still, outputs are in the 500kb+ range for most platforms. And this isn't really an issue for most, but for MIPS I'm looking at embedded use with devices that only have 4-8MB flash storage, a 2.5MB hello world binary isn't useful there.
o
Maybe MIPS binary size could be further reduced, we didn’t invest into size optimizations on MIPS much.