3 ms·
>The following assembly program is the ideal Linux x86_64 program for this purpose. A perfect compiler would emit this hello world program for any language. I.
by abjKT26nO8 7y ago
>The following assembly program is the ideal Linux x86_64 program for this purpose. A perfect compiler would emit this hello world program for any language.
I.e. you want your compiler to emit code that isn't portable across unix-like systems (and their future versions) in any degree? AFAIK Linux is the only unix-like system that guarantees ABI stability.
I'm curious what Zig does in this case that it got so "good" results. Does it forgo portability?
- saagarjha 7y agoLinux binaries should take advantage of the stability of the platform they’re on, surely?