3 ms·
I've done a reasonable amount of ARM, x86 and amd64 programming with the go assembler. It's quirks are annoying to start with, but if you use more than one ass
by nickcw 8y ago
I've done a reasonable amount of ARM, x86 and amd64 programming with the go assembler.
It's quirks are annoying to start with, but if you use more than one assembly language you begin to see the advantages of a more consistent syntax between them.
I suspect the advantages for the go maintainers of a uniformish assembler syntax are the real reason for it.
- pcwalton 8y agoI use ARM and x86-64 extensively and any minor inconvenience caused by different syntax for trivial operations is completely outweighed by the downside of being incompatible with the CPU vendor's manual. LLVM MachineInstr and Cranelift do this much better than Go does, by maintaining a clean separation between the low-level IR and the assembly language.