Timeline Sandbox

Conversation

Recent posts in reply to #kaiqxgq

@prologic@twtxt.net

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 🤔

Read replies 6 months ago
@prologic@twtxt.net

@movq I've managed to bring a simple "Hello World!" in mu (µ) (at least on macOS / Darwin / ARM64) down to ~86KB (previously ~146KB) 🥳

In reply to: #kaiqxgq 6 months ago
@prologic@twtxt.net

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.

In reply to: #kaiqxgq 6 months ago
@prologic@twtxt.net

@shinyoukai Nah it's more like there's a lot of repeated code, because when you go from source language to intermediate representation to machine code, well you just end up writing a lot of the same patterns over and over again. I need to dedupe this I think.

In reply to: #kaiqxgq 6 months ago
@prologic@twtxt.net

@movq Thanks! 🙏

In reply to: #kaiqxgq 6 months ago
Comment via email