The compiler technique I'm using here is to not "emit" most of the runtime if it's actually never used in your program, and also dropping dead code in the SSA pass.
Timeline
Recent posts from feeds followed by sorenpeter@darch.dk
@movq I've managed to bring a simple "Hello World!" in mu (µ) (at least on macOS / Darwin / ARM64) down to ~86KB (previously ~146KB) 🥳
Hmmm I need to figure out a way to reduce the no. of lines of code / complexity of the ARM64 native code emitter for mu (µ). It's insane really, it's a whopping ~6k SLOC, the next biggest source file is the compiler at only ~800 SLOC 🤔
@movq I think I can get binaries even smaller with a bit more work and effort 🤔 But yeah still working on the native code generation (at least for macOS targets)
@movq Oh that's fine, Mu can compile to native code and so far binaries. at least on macOS are in the order of Kb in size 😂
@movq It'd be cool if you could get µ (Mu) running in your little toyOS 🤣 You'd technically only have to swap out the syscall() builtin for whatever your toy OS supports 🤔
@prologic Not even entirely sure how I did it myself, but likely a lucky combination of the new tail swirl, the legs closer to the screen being bigger and the head looking slightly to the side (eye & ear position), with bottom part of the hair, going behind the snout. The white is just an outline, around most of my works, so I don't think that plays a part.
@movq I watched a few of these thanks to you! Very cool shit™ 😎
søren peter mørch