Source

Branch

1/ @NOTimothyLottes

@Jonathan_Blow @rflaherty71

Suggestion: focus on compile speed and small size, aka simple code generation (easy to maintain), but not necessarily runtime performance optimal. Then lean more on inline asm or intrinsic guided stuff for perf critical.

2/ @NOTimothyLottes

@Jonathan_Blow @rflaherty71

My last x86-64 compiler wasn’t even byte aware in code generation. It used dummy prefix to pad out so all opcodes are 32-bit aligned. It was crazy fast to compile though, and dead simple to maintain. The runtime of compiler was still faster in my language than the same in C.

3/ @o__boga

@NOTimothyLottes @Jonathan_Blow @rflaherty71

Do you have the compiler source available anywhere?