|| at Nov 8, 2013 at 8:38 pm
On Fri, Nov 8, 2013 at 7:47 AM, r wrote:
Two quick questions:
-I want to align a label to 16 bytes, is this possible?
you can't control the alignment of a lable, however, TEXT (function)
entries are aligned to 16-byte boundary
(this is for both amd64 and 386; for ARM, the function alignment is 4-byte).
-How do I define a data (byte array) in assembly? (I believe using DATA,
though 6a/6l keeps giving errors)
the general format is:
DATA name(SB)/offset, initialization-data
followed by GLOBL:
however, if you only want to declare BSS data, just GLOBL suffices.
(See the asm doc link below for details).
I couldn't find answers in http://plan9.bell-labs.com/sys/doc/asm.html
Fingers crossed for the upcoming assembler doc (finally :)).
You can preview it here: https://codereview.appspot.com/20930043On Fri, Nov 8, 2013 at 7:58 AM, r wrote:
Also, I'm wondering: how do I translate this (clang) line
into 6a input?
Folowing "When in doubt" section, I checked gc's objdump, which says
LEAQ -0x100(SI), CX
(No $ needed.)
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 email@example.com.
For more options, visit https://groups.google.com/groups/opt_out.