1 @c Copyright (C) 2009-2023 Free Software Foundation, Inc.
2 @c This is part of the GAS manual.
3 @c For copying conditions, see the file as.texinfo.
6 @node MicroBlaze-Dependent
7 @chapter MicroBlaze Dependent Features
10 @node Machine Dependencies
11 @chapter MicroBlaze Dependent Features
14 @cindex MicroBlaze architectures
15 The Xilinx MicroBlaze processor family includes several variants, all using
16 the same core instruction set. This chapter covers features of the @sc{gnu}
17 assembler that are specific to the MicroBlaze architecture. For details about
18 the MicroBlaze instruction set, please see the @cite{MicroBlaze Processor
19 Reference Guide (UG081)} available at www.xilinx.com.
21 @cindex MicroBlaze support
23 * MicroBlaze Directives:: Directives for MicroBlaze Processors.
24 * MicroBlaze Syntax:: Syntax for the MicroBlaze
27 @node MicroBlaze Directives
29 @cindex MicroBlaze directives
30 A number of assembler directives are available for MicroBlaze.
33 @item .data8 @var{expression},...
34 This directive is an alias for @code{.byte}. Each expression is assembled
35 into an eight-bit value.
37 @item .data16 @var{expression},...
38 This directive is an alias for @code{.hword}. Each expression is assembled
41 @item .data32 @var{expression},...
42 This directive is an alias for @code{.word}. Each expression is assembled
45 @item .ent @var{name}[,@var{label}]
46 This directive is an alias for @code{.func} denoting the start of function
47 @var{name} at (optional) @var{label}.
49 @item .end @var{name}[,@var{label}]
50 This directive is an alias for @code{.endfunc} denoting the end of function
53 @item .gpword @var{label},...
54 This directive is an alias for @code{.rva}. The resolved address of @var{label}
55 is stored in the data section.
57 @item .weakext @var{label}
58 Declare that @var{label} is a weak external symbol.
61 Switch to .rodata section. Equivalent to @code{.section .rodata}
64 Switch to .sdata2 section. Equivalent to @code{.section .sdata2}
67 Switch to .sdata section. Equivalent to @code{.section .sdata}
70 Switch to .bss section. Equivalent to @code{.section .bss}
73 Switch to .sbss section. Equivalent to @code{.section .sbss}
76 @node MicroBlaze Syntax
77 @section Syntax for the MicroBlaze
79 * MicroBlaze-Chars:: Special Characters
82 @node MicroBlaze-Chars
83 @subsection Special Characters
85 @cindex line comment character, MicroBlaze
86 @cindex MicroBlaze line comment character
87 The presence of a @samp{#} on a line indicates the start of a comment
88 that extends to the end of the current line.
90 If a @samp{#} appears as the first character of a line, the whole line
91 is treated as a comment, but in this case the line can also be a
92 logical line number directive (@pxref{Comments}) or a
93 preprocessor control command (@pxref{Preprocessing}).
95 @cindex line separator, MicroBlaze
96 @cindex statement separator, MicroBlaze
97 @cindex MicroBlaze line separator
98 The @samp{;} character can be used to separate statements on the same