Easy to read Golang assembly output?

后端 未结 5 1767
猫巷女王i
猫巷女王i 2020-12-24 06:13

I\'m interested in examining the x86 assembly output of the standard Go compiler to see if my code is really being converted into reasonably efficient assembly code; hopeful

5条回答
  •  梦毁少年i
    2020-12-24 07:02

    Run go tool objdump on the resulting executable file.

    To restrict the output to interesting functions, use its -s option.

提交回复
热议问题