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