mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-21 04:42:53 +08:00
a05a5b64cf
Binutils documentation uses a mix of spelling for the compound word "command-line X". According to [1]: "Sometimes compound words are written separately (nail polish), sometimes with a hyphen (short-sighted) and sometimes as one word (eyelashes). Often new compounds are written as two separate words and, as they become more familiar, they are either connected with a hyphen (-) or made into one word." I think command-line X is common enough in our industry that the two workds command and line should be connected. Since command-line is more common than commandline, I propose to update binutils documentation to consistently use "command-line" when this is used as an adjective to a noun (eg. command-line argument, command-line switch, command-line option and command-line flag). I've left occurences of "the command line" as is. I've also left gdb, sim and readline alone and have only touched public documentation (texi and NEWS files). [1] http://dictionary.cambridge.org/grammar/british-grammar/word-formation/compounds 2018-07-02 Thomas Preud'homme <thomas.preudhomme@arm.com> bfd/ * doc/bfdint.texi: Use command-line consistently when used in a compount word. * doc/bfdsumm.texi: Likewise. binutils/ * NEWS: Use command-line consistently when used in a compount word. * doc/binutils.texi: Likewise and fix trailing whitespace on same line. gas/ * NEWS: Use command-line consistently when used in a compount word. * doc/as.texi: Likewise. * doc/c-aarch64.texi: Likewise. * doc/c-alpha.texi: Likewise. * doc/c-arc.texi: Likewise. * doc/c-arm.texi: Likewise. * doc/c-avr.texi: Likewise. * doc/c-bfin.texi: Likewise. * doc/c-cris.texi: Likewise. * doc/c-epiphany.texi: Likewise. * doc/c-i386.texi: Likewise. * doc/c-ia64.texi: Likewise. * doc/c-lm32.texi: Likewise. * doc/c-m32r.texi: Likewise. * doc/c-m68k.texi: Likewise. * doc/c-mips.texi: Likewise. * doc/c-mmix.texi: Likewise. * doc/c-msp430.texi: Likewise. * doc/c-mt.texi: Likewise. * doc/c-nios2.texi: Likewise. * doc/c-ppc.texi: Likewise. * doc/c-pru.texi: Likewise. * doc/c-rl78.texi: Likewise. * doc/c-rx.texi: Likewise. * doc/c-tic6x.texi: Likewise. * doc/c-v850.texi: Likewise. * doc/c-vax.texi: Likewise. * doc/c-visium.texi: Likewise. * doc/c-xstormy16.texi: Likewise. * doc/c-xtensa.texi: Likewise. * doc/c-z80.texi: Likewise. * doc/c-z8k.texi: Likewise. * doc/internals.texi: Likewise. gprof/ * gprof.texi: Use command-line consistently when used in a compount word. ld/ * NEWS: Use command-line consistently when used in a compount word. * ld.texinfo: Likewise. * ldint.texinfo: Likewise.
151 lines
3.8 KiB
Plaintext
151 lines
3.8 KiB
Plaintext
@c Copyright (C) 2015-2018 Free Software Foundation, Inc.
|
|
@c This is part of the GAS manual.
|
|
@c For copying conditions, see the file as.texinfo.
|
|
@c man end
|
|
@ifset GENERIC
|
|
@page
|
|
@node PRU-Dependent
|
|
@chapter PRU Dependent Features
|
|
@end ifset
|
|
|
|
@cindex PRU support
|
|
@menu
|
|
* PRU Options:: Options
|
|
* PRU Syntax:: Syntax
|
|
* PRU Relocations:: Relocations
|
|
* PRU Directives:: PRU Machine Directives
|
|
* PRU Opcodes:: Opcodes
|
|
@end menu
|
|
|
|
@node PRU Options
|
|
@section Options
|
|
@cindex PRU options
|
|
@cindex options for PRU
|
|
|
|
@c man begin OPTIONS
|
|
@table @gcctabopt
|
|
|
|
@cindex @code{mlink-relax} command-line option, PRU
|
|
@item -mlink-relax
|
|
Assume that LD would optimize LDI32 instructions by checking the upper
|
|
16 bits of the @var{expression}. If they are all zeros, then LD would
|
|
shorten the LDI32 instruction to a single LDI. In such case @code{@value{AS}}
|
|
will output DIFF relocations for diff expressions.
|
|
|
|
@cindex @code{mno-link-relax} command-line option, PRU
|
|
@item -mno-link-relax
|
|
Assume that LD would not optimize LDI32 instructions. As a consequence,
|
|
DIFF relocations will not be emitted.
|
|
|
|
@cindex @code{mno-warn-regname-label} command-line option, PRU
|
|
@item -mno-warn-regname-label
|
|
Do not warn if a label name matches a register name. Usually assembler
|
|
programmers will want this warning to be emitted. C compilers may want
|
|
to turn this off.
|
|
|
|
@end table
|
|
@c man end
|
|
|
|
@node PRU Syntax
|
|
@section Syntax
|
|
@menu
|
|
* PRU Chars:: Special Characters
|
|
@end menu
|
|
|
|
|
|
@node PRU Chars
|
|
@subsection Special Characters
|
|
|
|
@cindex line comment character, PRU
|
|
@cindex PRU line comment character
|
|
@samp{#} and @samp{;} are the line comment characters.
|
|
|
|
|
|
@node PRU Relocations
|
|
@section PRU Machine Relocations
|
|
|
|
@cindex machine relocations, PRU
|
|
@cindex PRU machine relocations
|
|
|
|
@table @code
|
|
|
|
@cindex @code{pmem} directive, PRU
|
|
@item %pmem(@var{expression})
|
|
Convert @var{expression} from byte-address to a
|
|
word-address. In other words, shift right by two.
|
|
|
|
@item %label(@var{expression})
|
|
Mark the given operand as a label. This is useful if you need to jump to
|
|
a label that matches a register name.
|
|
|
|
@smallexample
|
|
@group
|
|
r1:
|
|
jmp r1 ; Will jump to register R1
|
|
jmp %label(r1) ; Will jump to label r1
|
|
@end group
|
|
@end smallexample
|
|
|
|
@end table
|
|
|
|
|
|
@node PRU Directives
|
|
@section PRU Machine Directives
|
|
|
|
@cindex machine directives, PRU
|
|
@cindex PRU machine directives
|
|
|
|
@table @code
|
|
|
|
@cindex @code{align} directive, PRU
|
|
@item .align @var{expression} [, @var{expression}]
|
|
This is the generic @code{.align} directive, however
|
|
this aligns to a power of two.
|
|
|
|
@cindex @code{word} directive, PRU
|
|
@item .word @var{expression}
|
|
Create an aligned constant 4 bytes in size.
|
|
|
|
@cindex @code{dword} directive, PRU
|
|
@item .dword @var{expression}
|
|
Create an aligned constant 8 bytes in size.
|
|
|
|
@cindex @code{2byte} directive, PRU
|
|
@item .2byte @var{expression}
|
|
Create an unaligned constant 2 bytes in size.
|
|
|
|
@cindex @code{4byte} directive, PRU
|
|
@item .4byte @var{expression}
|
|
Create an unaligned constant 4 bytes in size.
|
|
|
|
@cindex @code{8byte} directive, PRU
|
|
@item .8byte @var{expression}
|
|
Create an unaligned constant 8 bytes in size.
|
|
|
|
@cindex @code{16byte} directive, PRU
|
|
@item .16byte @var{expression}
|
|
Create an unaligned constant 16 bytes in size.
|
|
|
|
@cindex @code{set no_warn_regname_label} directive, PRU
|
|
@item .set no_warn_regname_label
|
|
Do not output warnings when a label name matches a register name. Equivalent
|
|
to passing the @code{-mno-warn-regname-label} command-line option.
|
|
|
|
@end table
|
|
|
|
@node PRU Opcodes
|
|
@section Opcodes
|
|
|
|
@cindex PRU opcodes
|
|
@cindex opcodes for PRU
|
|
@code{@value{AS}} implements all the standard PRU core V3 opcodes in the
|
|
original pasm assembler. Older cores are not supported by @code{@value{AS}}.
|
|
|
|
GAS also implements the LDI32 pseudo instruction for loading a 32-bit
|
|
immediate value into a register.
|
|
|
|
@smallexample
|
|
ldi32 sp, __stack_top
|
|
ldi32 r14, 0x12345678
|
|
@end smallexample
|