binutils-gdb/gas/doc/c-score.texi

168 lines
4.4 KiB
Plaintext
Raw Normal View History

@c Copyright (C) 2009-2021 Free Software Foundation, Inc.
2009-03-02 18:33:08 +08:00
@c This is part of the GAS manual.
@c For copying conditions, see the file as.texinfo.
@ifset GENERIC
@page
@node SCORE-Dependent
@chapter SCORE Dependent Features
@end ifset
@ifclear GENERIC
@node Machine Dependencies
@chapter SCORE Dependent Features
@end ifclear
@cindex SCORE processor
@menu
* SCORE-Opts:: Assembler options
* SCORE-Pseudo:: SCORE Assembler Directives
PR gas/12390 * doc/all.texi: Add NS32K * doc/as.texinfo: Remove target specific details of which characters act as comment initiators and statement separators into individual target specific files. * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of the hash character at the start of a line. * doc/c-arm.texi (ARM-Chars): Likewise. * doc/c-avr.texi (AVR-Chars): Likewise. * doc/c-d10v.texi (D10V-Chars): Likewise. * doc/c-d30v.texi (D30V-Chars): Likewise. * doc/c-mmix.texi (MMIX-Chars): Likewise. * doc/c-s390.texi (s390 characters): Likewise. * doc/c-sh.texi (SH-Chars): Likewise. * doc/c-sh64.texi (SH64-Chars): Likewise. * doc/c-sparc.texi (SPARC-Chars): Likewise. * doc/c-tic6x.texi (TIC6X Syntax): Likewise. * doc/c-xtensa.texi (Xtensa Syntax): Likewise. * doc/c-z80.texi (Z80-Chars): Likewise. * doc/c-z8k.texi (Z8000-Chars): Likewise. * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character. * doc/c-arc.texi (ARC-Chars): Fill in this subsection. * doc/c-bfin.texi (Blackfin Syntax): Document line comment and line separator characters. * doc/c-cr16.texi (CR16 Syntax): Likewise. * doc/c-i386.texi (i386-Chars): Likewise. * doc/c-i860.texi (i860-Chars): Likewise. * doc/c-i960.texi (i960-Chars): Likewise. * doc/c-ip2k.texi (IP2K-Chars): Likewise. * doc/c-lm32.texi (LM32-Chars): likewise. * doc/c-m32c.texi (M32C-Chars): Likewise. * doc/c-m68hc11.texi (M68HC11-syntax): Likewise. * doc/c-m68k.texi (M68K-Chars): Likewise. * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise. * doc/c-msp430.texi (MSP430-Chars): Likewise. * doc/c-mt.texi (MT-Chars): Likewise. * doc/c-ns32k.texi (NS32K-Chars): Likewise. * doc/c-pj.texi (PJ-Chars): Likewise. * doc/c-ppc.texi (PowerPC-Chars): Likewise. * doc/c-rx.texi (RX-Chars): Likewise. * doc/c-score.texi (SCORE-Chars): Likewise. * doc/c-tic54x.texi (TIC54X-Chars): Likewise. * doc/c-v850.texi (V850-Chars): Likewise. * doc/c-vax.texi (VAX-Chars): Likewise. * doc/c-xc16x.texi (xc16x-Chars): Likewise.
2011-01-18 21:37:39 +08:00
* SCORE-Syntax:: Syntax
2009-03-02 18:33:08 +08:00
@end menu
2013-01-11 03:51:55 +08:00
@node SCORE-Opts
2009-03-02 18:33:08 +08:00
@section Options
@cindex options for SCORE
@cindex SCORE options
@cindex architectures, SCORE
@cindex SCORE architectures
The following table lists all available SCORE options.
@table @code
@item -G @var{num}
This option sets the largest size of an object that can be referenced
implicitly with the @code{gp} register. The default value is 8.
@item -EB
Assemble code for a big-endian cpu
@item -EL
2009-03-02 18:33:08 +08:00
Assemble code for a little-endian cpu
2013-01-11 03:51:55 +08:00
@item -FIXDD
2009-03-02 18:33:08 +08:00
Assemble code for fix data dependency
2013-01-11 03:51:55 +08:00
@item -NWARN
2009-03-02 18:33:08 +08:00
Assemble code for no warning message for fix data dependency
@item -SCORE5
Assemble code for target is SCORE5
@item -SCORE5U
2009-03-02 18:33:08 +08:00
Assemble code for target is SCORE5U
@item -SCORE7
2009-03-02 18:33:08 +08:00
Assemble code for target is SCORE7, this is default setting
@item -SCORE3
2009-03-02 18:33:08 +08:00
Assemble code for target is SCORE3
@item -march=score7
Assemble code for target is SCORE7, this is default setting
@item -march=score3
Assemble code for target is SCORE3
2013-01-11 03:51:55 +08:00
@item -USE_R1
2009-03-02 18:33:08 +08:00
Assemble code for no warning message when using temp register r1
@item -KPIC
Generate code for PIC. This option tells the assembler to generate
score position-independent macro expansions. It also tells the
assembler to mark the output file as PIC.
@item -O0
Assembler will not perform any optimizations
2013-01-11 03:51:55 +08:00
@item -V
2009-03-02 18:33:08 +08:00
Sunplus release version
@end table
@node SCORE-Pseudo
@section SCORE Assembler Directives
@cindex directives for SCORE
@cindex SCORE directives
A number of assembler directives are available for SCORE. The
following table is far from complete.
@table @code
2013-01-11 03:51:55 +08:00
@item .set nwarn
Let the assembler not to generate warnings if the source machine
2009-03-02 18:33:08 +08:00
language instructions happen data dependency.
2013-01-11 03:51:55 +08:00
@item .set fixdd
Let the assembler to insert bubbles (32 bit nop instruction /
16 bit nop! Instruction) if the source machine language instructions
2009-03-02 18:33:08 +08:00
happen data dependency.
2013-01-11 03:51:55 +08:00
@item .set nofixdd
Let the assembler to generate warnings if the source machine
2009-03-02 18:33:08 +08:00
language instructions happen data dependency. (Default)
@item .set r1
2013-01-11 03:51:55 +08:00
Let the assembler not to generate warnings if the source program
uses r1. allow user to use r1
2009-03-02 18:33:08 +08:00
@item set nor1
Let the assembler to generate warnings if the source program uses
r1. (Default)
@item .sdata
2013-01-11 03:51:55 +08:00
Tell the assembler to add subsequent data into the sdata section
2009-03-02 18:33:08 +08:00
@item .rdata
Tell the assembler to add subsequent data into the rdata section
@item .frame "frame-register", "offset", "return-pc-register"
2013-01-11 03:51:55 +08:00
Describe a stack frame. "frame-register" is the frame register,
"offset" is the distance from the frame register to the virtual
frame pointer, "return-pc-register" is the return program register.
You must use ".ent" before ".frame" and only one ".frame" can be
used per ".ent".
2009-03-02 18:33:08 +08:00
@item .mask "bitmask", "frameoffset"
2013-01-11 03:51:55 +08:00
Indicate which of the integer registers are saved in the current
function's stack frame, this is for the debugger to explain the
2009-03-02 18:33:08 +08:00
frame chain.
@item .ent "proc-name"
2013-01-11 03:51:55 +08:00
Set the beginning of the procedure "proc_name". Use this directive
when you want to generate information for the debugger.
2009-03-02 18:33:08 +08:00
@item .end proc-name
2013-01-11 03:51:55 +08:00
Set the end of a procedure. Use this directive to generate information
for the debugger.
2009-03-02 18:33:08 +08:00
@item .bss
2013-01-11 03:51:55 +08:00
Switch the destination of following statements into the bss section,
which is used for data that is uninitialized anywhere.
2009-03-02 18:33:08 +08:00
@end table
PR gas/12390 * doc/all.texi: Add NS32K * doc/as.texinfo: Remove target specific details of which characters act as comment initiators and statement separators into individual target specific files. * doc/c-alpha.texi (Alpha-Chars): Document special behaviour of the hash character at the start of a line. * doc/c-arm.texi (ARM-Chars): Likewise. * doc/c-avr.texi (AVR-Chars): Likewise. * doc/c-d10v.texi (D10V-Chars): Likewise. * doc/c-d30v.texi (D30V-Chars): Likewise. * doc/c-mmix.texi (MMIX-Chars): Likewise. * doc/c-s390.texi (s390 characters): Likewise. * doc/c-sh.texi (SH-Chars): Likewise. * doc/c-sh64.texi (SH64-Chars): Likewise. * doc/c-sparc.texi (SPARC-Chars): Likewise. * doc/c-tic6x.texi (TIC6X Syntax): Likewise. * doc/c-xtensa.texi (Xtensa Syntax): Likewise. * doc/c-z80.texi (Z80-Chars): Likewise. * doc/c-z8k.texi (Z8000-Chars): Likewise. * doc/c-pdp11.texi (PDP11-Syntax): Document line separator character. * doc/c-arc.texi (ARC-Chars): Fill in this subsection. * doc/c-bfin.texi (Blackfin Syntax): Document line comment and line separator characters. * doc/c-cr16.texi (CR16 Syntax): Likewise. * doc/c-i386.texi (i386-Chars): Likewise. * doc/c-i860.texi (i860-Chars): Likewise. * doc/c-i960.texi (i960-Chars): Likewise. * doc/c-ip2k.texi (IP2K-Chars): Likewise. * doc/c-lm32.texi (LM32-Chars): likewise. * doc/c-m32c.texi (M32C-Chars): Likewise. * doc/c-m68hc11.texi (M68HC11-syntax): Likewise. * doc/c-m68k.texi (M68K-Chars): Likewise. * doc/c-microblaze.texi (MicroBlaze-Chars): Likewise. * doc/c-msp430.texi (MSP430-Chars): Likewise. * doc/c-mt.texi (MT-Chars): Likewise. * doc/c-ns32k.texi (NS32K-Chars): Likewise. * doc/c-pj.texi (PJ-Chars): Likewise. * doc/c-ppc.texi (PowerPC-Chars): Likewise. * doc/c-rx.texi (RX-Chars): Likewise. * doc/c-score.texi (SCORE-Chars): Likewise. * doc/c-tic54x.texi (TIC54X-Chars): Likewise. * doc/c-v850.texi (V850-Chars): Likewise. * doc/c-vax.texi (VAX-Chars): Likewise. * doc/c-xc16x.texi (xc16x-Chars): Likewise.
2011-01-18 21:37:39 +08:00
@node SCORE-Syntax
@section SCORE Syntax
@menu
* SCORE-Chars:: Special Characters
@end menu
@node SCORE-Chars
@subsection Special Characters
@cindex line comment character, SCORE
@cindex SCORE line comment character
The presence of a @samp{#} appearing anywhere on a line indicates the
start of a comment that extends to the end of that line.
If a @samp{#} appears as the first character of a line then the whole
line is treated as a comment, but in this case the line can also be a
logical line number directive (@pxref{Comments}) or a preprocessor
control command (@pxref{Preprocessing}).
@cindex line separator, SCORE
@cindex statement separator, SCORE
@cindex SCORE line separator
The @samp{;} character can be used to separate statements on the same
line.