MicroBlaze Dependent Features
*****************************

The Xilinx MicroBlaze processor family includes several variants, all using the same core instruction set.  This chapter covers features of the GNU assembler that are specific to the MicroBlaze architecture.  For details about the MicroBlaze instruction set, please see the MicroBlaze Processor Reference Guide (UG081) available at www.xilinx.com.

Directives
==========

A number of assembler directives are available for MicroBlaze.

.data8 EXPRESSION,...
     This directive is an alias for .byte. Each expression is assembled into an eight-bit value.

.data16 EXPRESSION,...
     This directive is an alias for .hword. Each expression is assembled into an 16-bit value.

.data32 EXPRESSION,...
     This directive is an alias for .word. Each expression is assembled into an 32-bit value.

.ent NAME[,LABEL]
     This directive is an alias for .func denoting the start of function NAME at (optional) LABEL.

.end NAME[,LABEL]
     This directive is an alias for .endfunc denoting the end of function NAME.

.gpword LABEL,...
     This directive is an alias for .rva.  The resolved address of LABEL is stored in the data section.

.weakext LABEL
     Declare that LABEL is a weak external symbol.

.rodata
     Switch to .rodata section. Equivalent to .section .rodata

.sdata2
     Switch to .sdata2 section. Equivalent to .section .sdata2

.sdata
     Switch to .sdata section. Equivalent to .section .sdata

.bss
     Switch to .bss section. Equivalent to .section .bss

.sbss
     Switch to .sbss section. Equivalent to .section .sbss