by serge2k · 10y ago · 0 comments
Why is the code written as words like this instead of just the assembly instructions?
That sort of thing is quite common in Go assembler. The assemblers are a little primitive and they force the assembly language for each processor into a common pattern, so when you are writing ARM assembler for instance, everything is backwards.
I imagine having rationalised the assemblers between processors somewhat it makes the core developers lives easier though who have to lightly touch lots of different processor assembler.
Because for me it feels very natural, given the Z80 and Intel Assembly.
And also, memory allocation is not the most obvious topic in Go/Golang assembly...