* options.cc (version_script): Fix small typo in previous
[binutils.git] / gas / doc / c-ppc.texi
blob1436604d38db7e478a20236c2837377d3b349e2c
1 @c Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010
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
15 @cindex PowerPC support
16 @menu
17 * PowerPC-Opts::                Options
18 * PowerPC-Pseudo::              PowerPC Assembler Directives
19 @end menu
21 @node PowerPC-Opts
22 @section Options
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.
34 The following table lists all available PowerPC options.
36 @table @code
37 @item -mpwrx | -mpwr2
38 Generate code for POWER/2 (RIOS2).
40 @item -mpwr
41 Generate code for POWER (RIOS1)
43 @item -m601
44 Generate code for PowerPC 601.
46 @item -mppc, -mppc32, -m603, -m604
47 Generate code for PowerPC 603/604.
49 @item -m403, -m405
50 Generate code for PowerPC 403/405.
52 @item -m440
53 Generate code for PowerPC 440.  BookE and some 405 instructions.
55 @item -m476
56 Generate code for PowerPC 476.
58 @item -m7400, -m7410, -m7450, -m7455
59 Generate code for PowerPC 7400/7410/7450/7455.
61 @item -m750cl
62 Generate code for PowerPC 750CL.
64 @item -mppc64, -m620
65 Generate code for PowerPC 620/625/630.
67 @item -me500, -me500x2
68 Generate code for Motorola e500 core complex.
70 @item -mspe
71 Generate code for Motorola SPE instructions.
73 @item -mtitan
74 Generate code for AppliedMicro Titan core complex.
76 @item -mppc64bridge
77 Generate code for PowerPC 64, including bridge insns.
79 @item -mbooke
80 Generate code for 32-bit BookE.
82 @item -ma2
83 Generate code for A2 architecture.
85 @item -me300
86 Generate code for PowerPC e300 family.
88 @item -maltivec
89 Generate code for processors with AltiVec instructions.
91 @item -mvsx
92 Generate code for processors with Vector-Scalar (VSX) instructions.
94 @item -mpower4
95 Generate code for Power4 architecture.
97 @item -mpower5
98 Generate code for Power5 architecture.
100 @item -mpower6
101 Generate code for Power6 architecture.
103 @item -mpower7
104 Generate code for Power7 architecture.
106 @item -mcell
107 Generate code for Cell Broadband Engine architecture.
109 @item -mcom
110 Generate code Power/PowerPC common instructions.
112 @item -many
113 Generate code for any architecture (PWR/PWRX/PPC).
115 @item -mregnames
116 Allow symbolic names for registers.
118 @item -mno-regnames
119 Do not allow symbolic names for registers.
121 @item -mrelocatable
122 Support for GCC's -mrelocatable option.
124 @item -mrelocatable-lib
125 Support for GCC's -mrelocatable-lib option.
127 @item -memb
128 Set PPC_EMB bit in ELF flags.
130 @item -mlittle, -mlittle-endian
131 Generate code for a little endian machine.
133 @item -mbig, -mbig-endian
134 Generate code for a big endian machine.
136 @item -msolaris
137 Generate code for Solaris.
139 @item -mno-solaris
140 Do not generate code for Solaris.
141 @end table
144 @node PowerPC-Pseudo
145 @section PowerPC Assembler Directives
147 @cindex directives for PowerPC
148 @cindex PowerPC directives
149 A number of assembler directives are available for PowerPC.  The
150 following table is far from complete.
152 @table @code
153 @item .machine "string"
154 This directive allows you to change the machine for which code is
155 generated.  @code{"string"} may be any of the -m cpu selection options
156 (without the -m) enclosed in double quotes, @code{"push"}, or
157 @code{"pop"}.  @code{.machine "push"} saves the currently selected
158 cpu, which may be restored with @code{.machine "pop"}.
159 @end table