*** empty log message ***
[deliverable/binutils-gdb.git] / gas / doc / c-ppc.texi
CommitLineData
ce3d2015 1@c Copyright 2001, 2002, 2003, 2005, 2006, 2007, 2008, 2009, 2010
418c1742
MG
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
f22b3caf 18* PowerPC-Pseudo:: PowerPC Assembler Directives
418c1742
MG
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
28The PowerPC chip family includes several successive levels, using the same
29core instruction set, but including a few additional instructions at
30each level. There are exceptions to this however. For details on what
31instructions each variant supports, please see the chip's architecture
32reference manual.
33
34The following table lists all available PowerPC options.
35
36@table @code
37@item -mpwrx | -mpwr2
23e1d84c 38Generate code for POWER/2 (RIOS2).
418c1742
MG
39
40@item -mpwr
23e1d84c 41Generate code for POWER (RIOS1)
418c1742
MG
42
43@item -m601
23e1d84c 44Generate code for PowerPC 601.
418c1742
MG
45
46@item -mppc, -mppc32, -m603, -m604
23e1d84c 47Generate code for PowerPC 603/604.
418c1742
MG
48
49@item -m403, -m405
23e1d84c
AM
50Generate code for PowerPC 403/405.
51
3d8aea2f
AM
52@item -m440
53Generate code for PowerPC 440. BookE and some 405 instructions.
54
9fe54b1c
PB
55@item -m476
56Generate code for PowerPC 476.
57
23e1d84c
AM
58@item -m7400, -m7410, -m7450, -m7455
59Generate code for PowerPC 7400/7410/7450/7455.
418c1742 60
c3d65c1c
BE
61@item -m750cl
62Generate code for PowerPC 750CL.
63
418c1742 64@item -mppc64, -m620
23e1d84c 65Generate code for PowerPC 620/625/630.
418c1742 66
7a467a28
AM
67@item -me500, -me500x2
68Generate code for Motorola e500 core complex.
69
70@item -mspe
71Generate code for Motorola SPE instructions.
72
ce3d2015
AM
73@item -mtitan
74Generate code for AppliedMicro Titan core complex.
75
418c1742
MG
76@item -mppc64bridge
77Generate code for PowerPC 64, including bridge insns.
78
2f3bb96a 79@item -mbooke
23e1d84c
AM
80Generate code for 32-bit BookE.
81
634b50f2 82@item -ma2
e0d602ec
BE
83Generate code for A2 architecture.
84
36ae0db3
DJ
85@item -me300
86Generate code for PowerPC e300 family.
87
23e1d84c
AM
88@item -maltivec
89Generate code for processors with AltiVec instructions.
90
9b4e5766
PB
91@item -mvsx
92Generate code for processors with Vector-Scalar (VSX) instructions.
93
23e1d84c
AM
94@item -mpower4
95Generate code for Power4 architecture.
418c1742 96
b0648eec
AM
97@item -mpower5
98Generate code for Power5 architecture.
99
9622b051
AM
100@item -mpower6
101Generate code for Power6 architecture.
102
9b4e5766
PB
103@item -mpower7
104Generate code for Power7 architecture.
105
ede602d7
AM
106@item -mcell
107Generate code for Cell Broadband Engine architecture.
108
418c1742
MG
109@item -mcom
110Generate code Power/PowerPC common instructions.
111
112@item -many
113Generate code for any architecture (PWR/PWRX/PPC).
114
115@item -mregnames
116Allow symbolic names for registers.
117
118@item -mno-regnames
119Do not allow symbolic names for registers.
120
121@item -mrelocatable
b45619c0 122Support for GCC's -mrelocatable option.
418c1742
MG
123
124@item -mrelocatable-lib
b45619c0 125Support for GCC's -mrelocatable-lib option.
418c1742
MG
126
127@item -memb
128Set PPC_EMB bit in ELF flags.
129
130@item -mlittle, -mlittle-endian
131Generate code for a little endian machine.
132
133@item -mbig, -mbig-endian
134Generate code for a big endian machine.
135
136@item -msolaris
137Generate code for Solaris.
138
139@item -mno-solaris
140Do not generate code for Solaris.
141@end table
f22b3caf
AM
142
143
144@node PowerPC-Pseudo
145@section PowerPC Assembler Directives
146
147@cindex directives for PowerPC
148@cindex PowerPC directives
149A number of assembler directives are available for PowerPC. The
150following table is far from complete.
151
152@table @code
153@item .machine "string"
154This directive allows you to change the machine for which code is
155generated. @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
158cpu, which may be restored with @code{.machine "pop"}.
159@end table
This page took 0.398868 seconds and 4 git commands to generate.