(no title)
saclark11 | 1 year ago
Rob Pike spoke on the design of Go's assembler at a talk in 2016 [1][2]. I think it basically came down to the observation that most assembly language is roughly the same, so why not build a common assembly language that "lets you talk to the machine at the lowest level and yet not have to learn a new syntax." It also enables them to automatically generate a working assembler given an instruction manual PDF for a new architecture as input.
[1]: https://www.youtube.com/watch?v=KINIAgRpkDA [2]: https://go.dev/talks/2016/asm.slide#1
alphazard|1 year ago
cloudfudge|1 year ago
I've been doing this for 35 years and cross compiling anything nontrivial was always a toolchain nightmare. Discovering a world where all I had to do was set GOARCH=mips64 (and possibly GOOS=darwin if I wanted mac binaries) before invoking the compiler is so magical I was extremely skeptical when I first read about it.
p_l|1 year ago
lifthrasiir|1 year ago
[1] https://go.dev/talks/2016/asm.slide#32
sweeter|1 year ago
pjmlp|1 year ago
Yoric|1 year ago
unknown|1 year ago
[deleted]
unknown|1 year ago
[deleted]