as: MicroBlaze Directives

1 
1 9.26.1 Directives
1 -----------------
1 
1 A number of assembler directives are available for MicroBlaze.
1 
1 '.data8 EXPRESSION,...'
1      This directive is an alias for '.byte'.  Each expression is
1      assembled into an eight-bit value.
1 
1 '.data16 EXPRESSION,...'
1      This directive is an alias for '.hword'.  Each expression is
1      assembled into an 16-bit value.
1 
1 '.data32 EXPRESSION,...'
1      This directive is an alias for '.word'.  Each expression is
1      assembled into an 32-bit value.
1 
1 '.ent NAME[,LABEL]'
1      This directive is an alias for '.func' denoting the start of
1      function NAME at (optional) LABEL.
1 
1 '.end NAME[,LABEL]'
1      This directive is an alias for '.endfunc' denoting the end of
1      function NAME.
1 
1 '.gpword LABEL,...'
1      This directive is an alias for '.rva'.  The resolved address of
1      LABEL is stored in the data section.
1 
1 '.weakext LABEL'
1      Declare that LABEL is a weak external symbol.
1 
1 '.rodata'
1      Switch to .rodata section.  Equivalent to '.section .rodata'
1 
1 '.sdata2'
1      Switch to .sdata2 section.  Equivalent to '.section .sdata2'
1 
1 '.sdata'
1      Switch to .sdata section.  Equivalent to '.section .sdata'
1 
1 '.bss'
1      Switch to .bss section.  Equivalent to '.section .bss'
1 
1 '.sbss'
1      Switch to .sbss section.  Equivalent to '.section .sbss'
1