If you pass `-M intel` to objdump it will display intel syntax. Quoting robert engels (2018-12-14 16:41:39) > but the operands are backwards according to MOVQ on Intel, it > should be > dst,src > SO, I'm thinking "intermediate code", so different syntax. Fine, but > then when I use objdump or otool, the assembly still looks backwards, > but matches the above. > Is this because LLVM is also "backwards" ?
It's not about intermediate code, Intel just uses different syntax than both the Go and GNU assemblers, which are descendants (in tradition, if not actual code) of the old AT&T assemblers. The AT&T syntax uses src,dst. > It there anyway to get objdump or otool to output intel assembly that > matches their documentation ? You can pass objdump `-M intel`. -Ian -- 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. For more options, visit https://groups.google.com/d/optout.