I need to find a reasonable doc ( btw, I did search google but not much complete info ) or if some one can help me on this –
How could I build a go and an asm file under linux or osx.
Need to know what as it is invoking? Is it the native go assembler? If so, then are the source included in the src trunk? If not then I would assume GAS is being invoked !
Also if there is a fairly complete doc on Go assembly lang. I found rob pike’s old doc, but not much I could use. For example, I see instructions ( while I was on lldb) like LCC 4(PC). It is a jump and what it is checking in eflags register? The short manual says, the instructions are more like 68000 family, but don’t find a reference of it. On intel it is a class of jump instructions, almost 50 or 60 of them.
How could I build a go and an asm file under linux or osx.
The go tool does it for you as long as the .s files are in the same package. Check out the math/big and bytes packages for good examples.
Need to know what as it is invoking? Is it the native go assembler? If so, then are the source included in the src trunk? If not then I would assume GAS is being invoked !
This is Go style assembler, it is assembled by go tool asm automatically.
Also if there is a fairly complete doc on Go assembly lang. I found rob pike’s old doc, but not much I could use. For example, I see instructions ( while I was on lldb) like LCC 4(PC). It is a jump and what it is checking in eflags register? The short manual says, the instructions are more like 68000 family, but don’t find a reference of it. On intel it is a class of jump instructions, almost 50 or 60 of them.
Nope sorry, that’s the best there is. The way most of us figured it out is by reading the various .s files dotted around the std library.