]>
Commit | Line | Data |
---|---|---|
9304f876 | 1 | ; Options of Andes NDS32 cpu for GNU compiler |
85ec4feb | 2 | ; Copyright (C) 2012-2018 Free Software Foundation, Inc. |
9304f876 CJW |
3 | ; Contributed by Andes Technology Corporation. |
4 | ; | |
5 | ; This file is part of GCC. | |
6 | ; | |
7 | ; GCC is free software; you can redistribute it and/or modify it | |
8 | ; under the terms of the GNU General Public License as published | |
9 | ; by the Free Software Foundation; either version 3, or (at your | |
10 | ; option) any later version. | |
11 | ; | |
12 | ; GCC is distributed in the hope that it will be useful, but WITHOUT | |
13 | ; ANY WARRANTY; without even the implied warranty of MERCHANTABILITY | |
14 | ; or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public | |
15 | ; License for more details. | |
16 | ; | |
17 | ; You should have received a copy of the GNU General Public License | |
18 | ; along with GCC; see the file COPYING3. If not see | |
19 | ; <http://www.gnu.org/licenses/>. | |
20 | ||
21 | HeaderInclude | |
22 | config/nds32/nds32-opts.h | |
23 | ||
aa4b851c CJW |
24 | ; --------------------------------------------------------------- |
25 | ; The following options are designed for aliasing and compatibility options. | |
26 | ||
27 | EB | |
28 | Target RejectNegative Alias(mbig-endian) | |
9304f876 CJW |
29 | Generate code in big-endian mode. |
30 | ||
aa4b851c CJW |
31 | EL |
32 | Target RejectNegative Alias(mlittle-endian) | |
9304f876 CJW |
33 | Generate code in little-endian mode. |
34 | ||
aa4b851c CJW |
35 | ; --------------------------------------------------------------- |
36 | ||
9304f876 CJW |
37 | mreduced-regs |
38 | Target Report RejectNegative Negative(mfull-regs) Mask(REDUCED_REGS) | |
39 | Use reduced-set registers for register allocation. | |
40 | ||
41 | mfull-regs | |
42 | Target Report RejectNegative Negative(mreduced-regs) InverseMask(REDUCED_REGS) | |
43 | Use full-set registers for register allocation. | |
44 | ||
aa4b851c CJW |
45 | ; --------------------------------------------------------------- |
46 | ||
47 | mbig-endian | |
48 | Target Undocumented RejectNegative Negative(mlittle-endian) Mask(BIG_ENDIAN) | |
49 | Generate code in big-endian mode. | |
50 | ||
51 | mlittle-endian | |
52 | Target Undocumented RejectNegative Negative(mbig-endian) InverseMask(BIG_ENDIAN) | |
53 | Generate code in little-endian mode. | |
54 | ||
55 | ||
9304f876 CJW |
56 | mcmov |
57 | Target Report Mask(CMOV) | |
58 | Generate conditional move instructions. | |
59 | ||
aa4b851c CJW |
60 | mext-perf |
61 | Target Report Mask(EXT_PERF) | |
9304f876 CJW |
62 | Generate performance extension instructions. |
63 | ||
aa4b851c CJW |
64 | mext-perf2 |
65 | Target Report Mask(EXT_PERF2) | |
66 | Generate performance extension version 2 instructions. | |
67 | ||
68 | mext-string | |
69 | Target Report Mask(EXT_STRING) | |
70 | Generate string extension instructions. | |
71 | ||
9304f876 CJW |
72 | mv3push |
73 | Target Report Mask(V3PUSH) | |
74 | Generate v3 push25/pop25 instructions. | |
75 | ||
76 | m16-bit | |
77 | Target Report Mask(16_BIT) | |
78 | Generate 16-bit instructions. | |
79 | ||
ff77f6e8 KC |
80 | mvh |
81 | Target Report Mask(VH) | |
82 | Enable Virtual Hosting support. | |
83 | ||
9304f876 CJW |
84 | misr-vector-size= |
85 | Target RejectNegative Joined UInteger Var(nds32_isr_vector_size) Init(NDS32_DEFAULT_ISR_VECTOR_SIZE) | |
86 | Specify the size of each interrupt vector, which must be 4 or 16. | |
87 | ||
88 | mcache-block-size= | |
89 | Target RejectNegative Joined UInteger Var(nds32_cache_block_size) Init(NDS32_DEFAULT_CACHE_BLOCK_SIZE) | |
90 | Specify the size of each cache block, which must be a power of 2 between 4 and 512. | |
91 | ||
92 | march= | |
93 | Target RejectNegative Joined Enum(nds32_arch_type) Var(nds32_arch_option) Init(ARCH_V3) | |
94 | Specify the name of the target architecture. | |
95 | ||
96 | Enum | |
97 | Name(nds32_arch_type) Type(enum nds32_arch_type) | |
667a055a | 98 | Known arch types (for use with the -march= option): |
9304f876 CJW |
99 | |
100 | EnumValue | |
101 | Enum(nds32_arch_type) String(v2) Value(ARCH_V2) | |
102 | ||
103 | EnumValue | |
104 | Enum(nds32_arch_type) String(v3) Value(ARCH_V3) | |
105 | ||
106 | EnumValue | |
107 | Enum(nds32_arch_type) String(v3m) Value(ARCH_V3M) | |
108 | ||
fe4c07dc | 109 | mcmodel= |
6855fa21 | 110 | Target RejectNegative Joined Enum(nds32_cmodel_type) Var(nds32_cmodel_option) Init(CMODEL_LARGE) |
fe4c07dc CJW |
111 | Specify the address generation strategy for code model. |
112 | ||
113 | Enum | |
114 | Name(nds32_cmodel_type) Type(enum nds32_cmodel_type) | |
115 | Known cmodel types (for use with the -mcmodel= option): | |
116 | ||
117 | EnumValue | |
118 | Enum(nds32_cmodel_type) String(small) Value(CMODEL_SMALL) | |
119 | ||
120 | EnumValue | |
121 | Enum(nds32_cmodel_type) String(medium) Value(CMODEL_MEDIUM) | |
122 | ||
123 | EnumValue | |
124 | Enum(nds32_cmodel_type) String(large) Value(CMODEL_LARGE) | |
125 | ||
7f3101c0 KC |
126 | mcpu= |
127 | Target RejectNegative Joined Enum(nds32_cpu_type) Var(nds32_cpu_option) Init(CPU_N9) | |
128 | Specify the cpu for pipeline model. | |
129 | ||
130 | Enum | |
131 | Name(nds32_cpu_type) Type(enum nds32_cpu_type) | |
132 | Known cpu types (for use with the -mcpu= option): | |
133 | ||
134 | EnumValue | |
135 | Enum(nds32_cpu_type) String(n9) Value(CPU_N9) | |
136 | ||
9304f876 CJW |
137 | mctor-dtor |
138 | Target Report | |
139 | Enable constructor/destructor feature. | |
140 | ||
141 | mrelax | |
142 | Target Report | |
143 | Guide linker to relax instructions. |