]> CyberLeo.Net >> Repos - FreeBSD/releng/8.1.git/blob - contrib/binutils/gas/doc/c-ppc.texi
Copy stable/8 to releng/8.1 in preparation for 8.1-RC1.
[FreeBSD/releng/8.1.git] / contrib / binutils / gas / doc / c-ppc.texi
1 @c Copyright 2001, 2002
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 PPC-Dependent
8 @chapter PowerPC Dependent Features
9 @end ifset
10 @ifclear GENERIC
11 @node Machine Dependencies
12 @chapter PowerPC Dependent Features
13 @end ifclear
14
15 @cindex PowerPC support
16 @menu
17 * PowerPC-Opts::                Options
18 * PowerPC-Pseudo::              PowerPC Assembler Directives
19 @end menu
20
21 @node PowerPC-Opts
22 @section Options
23
24 @cindex options for PowerPC
25 @cindex PowerPC options
26 @cindex architectures, PowerPC
27 @cindex PowerPC architectures
28 The PowerPC chip family includes several successive levels, using the same
29 core instruction set, but including a few additional instructions at
30 each level.  There are exceptions to this however.  For details on what
31 instructions each variant supports, please see the chip's architecture
32 reference manual.
33
34 The following table lists all available PowerPC options.
35
36 @table @code
37 @item -mpwrx | -mpwr2
38 Generate code for POWER/2 (RIOS2).
39
40 @item -mpwr
41 Generate code for POWER (RIOS1)
42
43 @item -m601
44 Generate code for PowerPC 601.
45
46 @item -mppc, -mppc32, -m603, -m604
47 Generate code for PowerPC 603/604.
48
49 @item -m403, -m405
50 Generate code for PowerPC 403/405.
51
52 @item -m440
53 Generate code for PowerPC 440.  BookE and some 405 instructions.
54
55 @item -m7400, -m7410, -m7450, -m7455
56 Generate code for PowerPC 7400/7410/7450/7455.
57
58 @item -mppc64, -m620
59 Generate code for PowerPC 620/625/630.
60
61 @item -mppc64bridge
62 Generate code for PowerPC 64, including bridge insns.
63
64 @item -mbooke64
65 Generate code for 64-bit BookE.
66
67 @item -mbooke, mbooke32
68 Generate code for 32-bit BookE.
69
70 @item -maltivec
71 Generate code for processors with AltiVec instructions.
72
73 @item -mpower4
74 Generate code for Power4 architecture.
75
76 @item -mcom
77 Generate code Power/PowerPC common instructions.
78
79 @item -many
80 Generate code for any architecture (PWR/PWRX/PPC).
81
82 @item -mregnames
83 Allow symbolic names for registers.
84
85 @item -mno-regnames
86 Do not allow symbolic names for registers.
87
88 @item -mrelocatable
89 Support for GCC's -mrelocatble option.
90
91 @item -mrelocatable-lib
92 Support for GCC's -mrelocatble-lib option.
93
94 @item -memb
95 Set PPC_EMB bit in ELF flags.
96
97 @item -mlittle, -mlittle-endian
98 Generate code for a little endian machine.
99
100 @item -mbig, -mbig-endian
101 Generate code for a big endian machine.
102
103 @item -msolaris
104 Generate code for Solaris.
105
106 @item -mno-solaris
107 Do not generate code for Solaris.
108 @end table
109
110
111 @node PowerPC-Pseudo
112 @section PowerPC Assembler Directives
113
114 @cindex directives for PowerPC
115 @cindex PowerPC directives
116 A number of assembler directives are available for PowerPC.  The
117 following table is far from complete.
118
119 @table @code
120 @item .machine "string"
121 This directive allows you to change the machine for which code is
122 generated.  @code{"string"} may be any of the -m cpu selection options
123 (without the -m) enclosed in double quotes, @code{"push"}, or
124 @code{"pop"}.  @code{.machine "push"} saves the currently selected
125 cpu, which may be restored with @code{.machine "pop"}.
126 @end table