Both the go tool compile
and go tool objdump
can print the assembler of go program, I wonder what is the difference between two of them?
go tool compile
and go build -gcflags -S
are used to generate assembly code that is in the process, while go tool objdump
is used to generate assembly code for the final machine code.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.