Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.Sign up
cmd/asm: doesn't handle register offset correctly when GOARCH=arm #36253
What version of Go are you using (
Glad to hear from you！Yes. I've found that it can generate the same machine code.
But I also found some other problems, like:
using go tool objdump can output:
If I write this code in my source file, I will get some errors, like
I don't know how many more problems like this...
There is no very specific document to describe the corresponding relationship between go assembly and arm assembly, so objdump maybe the only way to understand the above differences.
If the output of objdump is not standard and correct, it will be a problem indeed.