Проект

Общее

Профиль

Gcc » История » Версия 1

Андрей Волков, 2016-09-15 14:35

1 1 Андрей Волков
h1. Gcc
2
3
h2. Смотрим возможности процессора, которые могут быть использованы компилятором
4
5
<pre>
6
gcc -march=native -Q --help=target
7
</pre>
8
9
h3. Пример для Intel(R) Core(TM) i5-2450M CPU @ 2.50GHz
10
11
<pre>
12
The following options are target specific:
13
  -m128bit-long-double        		[disabled]
14
  -m16                        		[disabled]
15
  -m32                        		[disabled]
16
  -m3dnow                     		[disabled]
17
  -m3dnowa                    		[disabled]
18
  -m64                        		[enabled]
19
  -m80387                     		[enabled]
20
  -m8bit-idiv                 		[disabled]
21
  -m96bit-long-double         		[enabled]
22
  -mabi=                      		sysv
23
  -mabm                       		[disabled]
24
  -maccumulate-outgoing-args  		[disabled]
25
  -maddress-mode=             		short
26
  -madx                       		[disabled]
27
  -maes                       		[enabled]
28
  -malign-data=               		compat
29
  -malign-double              		[disabled]
30
  -malign-functions=          		0
31
  -malign-jumps=              		0
32
  -malign-loops=              		0
33
  -malign-stringops           		[enabled]
34
  -mandroid                   		[disabled]
35
  -march=                     		sandybridge
36
  -masm=                      		att
37
  -mavx                       		[enabled]
38
  -mavx2                      		[disabled]
39
  -mavx256-split-unaligned-load 	[disabled]
40
  -mavx256-split-unaligned-store 	[disabled]
41
  -mavx512bw                  		[disabled]
42
  -mavx512cd                  		[disabled]
43
  -mavx512dq                  		[disabled]
44
  -mavx512er                  		[disabled]
45
  -mavx512f                   		[disabled]
46
  -mavx512ifma                		[disabled]
47
  -mavx512pf                  		[disabled]
48
  -mavx512vbmi                		[disabled]
49
  -mavx512vl                  		[disabled]
50
  -mbionic                    		[disabled]
51
  -mbmi                       		[disabled]
52
  -mbmi2                      		[disabled]
53
  -mbranch-cost=              		0
54
  -mcld                       		[disabled]
55
  -mclflushopt                		[disabled]
56
  -mclwb                      		[disabled]
57
  -mcmodel=                   		32
58
  -mcpu=                      		
59
  -mcrc32                     		[disabled]
60
  -mcx16                      		[enabled]
61
  -mdispatch-scheduler        		[disabled]
62
  -mdump-tune-features        		[disabled]
63
  -mf16c                      		[disabled]
64
  -mfancy-math-387            		[enabled]
65
  -mfentry                    		[enabled]
66
  -mfma                       		[disabled]
67
  -mfma4                      		[disabled]
68
  -mforce-drap                		[disabled]
69
  -mfp-ret-in-387             		[enabled]
70
  -mfpmath=                   		387
71
  -mfsgsbase                  		[disabled]
72
  -mfused-madd                		
73
  -mfxsr                      		[enabled]
74
  -mglibc                     		[enabled]
75
  -mhard-float                		[enabled]
76
  -mhle                       		[disabled]
77
  -mieee-fp                   		[enabled]
78
  -mincoming-stack-boundary=  		0
79
  -minline-all-stringops      		[disabled]
80
  -minline-stringops-dynamically 	[disabled]
81
  -mintel-syntax              		
82
  -mlarge-data-threshold=     		0x10000
83
  -mlong-double-128           		[disabled]
84
  -mlong-double-64            		[disabled]
85
  -mlong-double-80            		[enabled]
86
  -mlwp                       		[disabled]
87
  -mlzcnt                     		[disabled]
88
  -mmemcpy-strategy=          		
89
  -mmemset-strategy=          		
90
  -mmmx                       		[enabled]
91
  -mmovbe                     		[disabled]
92
  -mmpx                       		[disabled]
93
  -mms-bitfields              		[disabled]
94
  -mmwaitx                    		[disabled]
95
  -mno-align-stringops        		[disabled]
96
  -mno-default                		[disabled]
97
  -mno-fancy-math-387         		[disabled]
98
  -mno-push-args              		[disabled]
99
  -mno-red-zone               		[disabled]
100
  -mno-sse4                   		[disabled]
101
  -mnop-mcount                		[disabled]
102
  -momit-leaf-frame-pointer   		[disabled]
103
  -mpc32                      		[disabled]
104
  -mpc64                      		[disabled]
105
  -mpc80                      		[disabled]
106
  -mpclmul                    		[enabled]
107
  -mpcommit                   		[disabled]
108
  -mpopcnt                    		[enabled]
109
  -mprefer-avx128             		[disabled]
110
  -mpreferred-stack-boundary= 		0
111
  -mprefetchwt1               		[disabled]
112
  -mprfchw                    		[disabled]
113
  -mpush-args                 		[enabled]
114
  -mrdrnd                     		[disabled]
115
  -mrdseed                    		[disabled]
116
  -mrecip                     		[disabled]
117
  -mrecip=                    		
118
  -mrecord-mcount             		[disabled]
119
  -mred-zone                  		[enabled]
120
  -mregparm=                  		0
121
  -mrtd                       		[disabled]
122
  -mrtm                       		[disabled]
123
  -msahf                      		[enabled]
124
  -msha                       		[disabled]
125
  -mskip-rax-setup            		[disabled]
126
  -msoft-float                		[disabled]
127
  -msse                       		[enabled]
128
  -msse2                      		[enabled]
129
  -msse2avx                   		[disabled]
130
  -msse3                      		[enabled]
131
  -msse4                      		[enabled]
132
  -msse4.1                    		[enabled]
133
  -msse4.2                    		[enabled]
134
  -msse4a                     		[disabled]
135
  -msse5                      		
136
  -msseregparm                		[disabled]
137
  -mssse3                     		[enabled]
138
  -mstack-arg-probe           		[disabled]
139
  -mstack-protector-guard=    		tls
140
  -mstackrealign              		[enabled]
141
  -mstringop-strategy=        		[default]
142
  -mtbm                       		[disabled]
143
  -mtls-dialect=              		gnu
144
  -mtls-direct-seg-refs       		[enabled]
145
  -mtune-ctrl=                		
146
  -mtune=                     		sandybridge
147
  -muclibc                    		[disabled]
148
  -mveclibabi=                		[default]
149
  -mvect8-ret-in-mem          		[disabled]
150
  -mvzeroupper                		[disabled]
151
  -mx32                       		[disabled]
152
  -mxop                       		[disabled]
153
  -mxsave                     		[enabled]
154
  -mxsavec                    		[disabled]
155
  -mxsaveopt                  		[enabled]
156
  -mxsaves                    		[disabled]
157
158
  Known assembler dialects (for use with the -masm-dialect= option):
159
    att intel
160
161
  Known ABIs (for use with the -mabi= option):
162
    ms sysv
163
164
  Known code models (for use with the -mcmodel= option):
165
    32 kernel large medium small
166
167
  Valid arguments to -mfpmath=:
168
    387 387+sse 387,sse both sse sse+387 sse,387
169
170
  Known data alignment choices (for use with the -malign-data= option):
171
    abi cacheline compat
172
173
  Known vectorization library ABIs (for use with the -mveclibabi= option):
174
    acml svml
175
176
  Known address mode (for use with the -maddress-mode= option):
177
    long short
178
179
  Known stack protector guard (for use with the -mstack-protector-guard= option):
180
    global tls
181
182
  Valid arguments to -mstringop-strategy=:
183
    byte_loop libcall loop rep_4byte rep_8byte rep_byte unrolled_loop vector_loop
184
185
  Known TLS dialects (for use with the -mtls-dialect= option):
186
    gnu gnu2
187
188
</pre>