How can I get just the hex of opcode from the $3 which is the entire instruction encoded in hexadecimal?
On Friday, 28 February 2020 at 09:13:29 UTC+4 wagner riffel wrote: > On Thu, 27 Feb 2020 19:03:02 -0800 (PST) > buch...@gmail.com wrote: > > > Can someone please explain the columns printed by "go tool objdump"? > > instruction. I'm not sure what columns 2, 3, and 5 are. > > Column $2 is the memory address offset, $3 is the entire instruction > encoded in hexadecimal, $5 is a continuation of $4, a disassembled > version of $3 > > > what the "TEXT %22%22.main(SB) > > gofile../Users/abuchanan/projects/gobuild/simple/ main.go" line is. > > TEXT is a pseudo-operation to the "entry point" to the function, > %22%22.main(SB) is the function label itself. > > You can find reference only here: > https://golang.org/doc/asm > https://9p.io/sys/doc/asm.html > > —wagner > -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/golang-nuts/30154eb9-9351-4b36-ab5e-2db4be087098n%40googlegroups.com.