]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gas/doc/c-score.texi
Remove trailing white spaces on gas
[thirdparty/binutils-gdb.git] / gas / doc / c-score.texi
CommitLineData
a4ac1c42 1@c Copyright 2009, 2011, 2013
c3b7224a
NC
2@c Free Software Foundation, Inc.
3@c This is part of the GAS manual.
4@c For copying conditions, see the file as.texinfo.
5@ifset GENERIC
6@page
7@node SCORE-Dependent
8@chapter SCORE Dependent Features
9@end ifset
10@ifclear GENERIC
11@node Machine Dependencies
12@chapter SCORE Dependent Features
13@end ifclear
14
15@cindex SCORE processor
16@menu
17* SCORE-Opts:: Assembler options
18* SCORE-Pseudo:: SCORE Assembler Directives
7c31ae13 19* SCORE-Syntax:: Syntax
c3b7224a
NC
20@end menu
21
34bca508 22@node SCORE-Opts
c3b7224a
NC
23@section Options
24
25@cindex options for SCORE
26@cindex SCORE options
27@cindex architectures, SCORE
28@cindex SCORE architectures
29
30The following table lists all available SCORE options.
31
32@table @code
33@item -G @var{num}
34This option sets the largest size of an object that can be referenced
35implicitly with the @code{gp} register. The default value is 8.
36
37@item -EB
38Assemble code for a big-endian cpu
39
a4ac1c42 40@item -EL
c3b7224a
NC
41Assemble code for a little-endian cpu
42
34bca508 43@item -FIXDD
c3b7224a
NC
44Assemble code for fix data dependency
45
34bca508 46@item -NWARN
c3b7224a
NC
47Assemble code for no warning message for fix data dependency
48
49@item -SCORE5
50Assemble code for target is SCORE5
51
a4ac1c42 52@item -SCORE5U
c3b7224a
NC
53Assemble code for target is SCORE5U
54
a4ac1c42 55@item -SCORE7
c3b7224a
NC
56Assemble code for target is SCORE7, this is default setting
57
a4ac1c42 58@item -SCORE3
c3b7224a
NC
59Assemble code for target is SCORE3
60
61@item -march=score7
62Assemble code for target is SCORE7, this is default setting
63
64@item -march=score3
65Assemble code for target is SCORE3
66
34bca508 67@item -USE_R1
c3b7224a
NC
68Assemble code for no warning message when using temp register r1
69
70@item -KPIC
71Generate code for PIC. This option tells the assembler to generate
72score position-independent macro expansions. It also tells the
73assembler to mark the output file as PIC.
74
75@item -O0
76Assembler will not perform any optimizations
77
34bca508 78@item -V
c3b7224a
NC
79Sunplus release version
80
81@end table
82
83@node SCORE-Pseudo
84@section SCORE Assembler Directives
85
86@cindex directives for SCORE
87@cindex SCORE directives
88A number of assembler directives are available for SCORE. The
89following table is far from complete.
90
91@table @code
34bca508
L
92@item .set nwarn
93Let the assembler not to generate warnings if the source machine
c3b7224a
NC
94language instructions happen data dependency.
95
34bca508
L
96@item .set fixdd
97Let the assembler to insert bubbles (32 bit nop instruction /
9816 bit nop! Instruction) if the source machine language instructions
c3b7224a
NC
99happen data dependency.
100
34bca508
L
101@item .set nofixdd
102Let the assembler to generate warnings if the source machine
c3b7224a
NC
103language instructions happen data dependency. (Default)
104
105@item .set r1
34bca508
L
106Let the assembler not to generate warnings if the source program
107uses r1. allow user to use r1
c3b7224a
NC
108
109@item set nor1
110Let the assembler to generate warnings if the source program uses
111r1. (Default)
112
113@item .sdata
34bca508 114Tell the assembler to add subsequent data into the sdata section
c3b7224a
NC
115
116@item .rdata
117Tell the assembler to add subsequent data into the rdata section
118
119@item .frame "frame-register", "offset", "return-pc-register"
34bca508
L
120Describe a stack frame. "frame-register" is the frame register,
121"offset" is the distance from the frame register to the virtual
122frame pointer, "return-pc-register" is the return program register.
123You must use ".ent" before ".frame" and only one ".frame" can be
124used per ".ent".
c3b7224a
NC
125
126@item .mask "bitmask", "frameoffset"
34bca508
L
127Indicate which of the integer registers are saved in the current
128function's stack frame, this is for the debugger to explain the
c3b7224a
NC
129frame chain.
130
131@item .ent "proc-name"
34bca508
L
132Set the beginning of the procedure "proc_name". Use this directive
133when you want to generate information for the debugger.
c3b7224a
NC
134
135@item .end proc-name
34bca508
L
136Set the end of a procedure. Use this directive to generate information
137for the debugger.
c3b7224a
NC
138
139@item .bss
34bca508
L
140Switch the destination of following statements into the bss section,
141which is used for data that is uninitialized anywhere.
c3b7224a
NC
142
143@end table
7c31ae13
NC
144
145@node SCORE-Syntax
146@section SCORE Syntax
147@menu
148* SCORE-Chars:: Special Characters
149@end menu
150
151@node SCORE-Chars
152@subsection Special Characters
153
154@cindex line comment character, SCORE
155@cindex SCORE line comment character
156The presence of a @samp{#} appearing anywhere on a line indicates the
157start of a comment that extends to the end of that line.
158
159If a @samp{#} appears as the first character of a line then the whole
160line is treated as a comment, but in this case the line can also be a
161logical line number directive (@pxref{Comments}) or a preprocessor
162control command (@pxref{Preprocessing}).
163
164@cindex line separator, SCORE
165@cindex statement separator, SCORE
166@cindex SCORE line separator
167The @samp{;} character can be used to separate statements on the same
168line.