]> git.ipfire.org Git - thirdparty/gcc.git/blame - gcc/config/nds32/nds32.opt
[NDS32] Add new option -mvh.
[thirdparty/gcc.git] / gcc / config / nds32 / nds32.opt
CommitLineData
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
21HeaderInclude
22config/nds32/nds32-opts.h
23
aa4b851c
CJW
24; ---------------------------------------------------------------
25; The following options are designed for aliasing and compatibility options.
26
27EB
28Target RejectNegative Alias(mbig-endian)
9304f876
CJW
29Generate code in big-endian mode.
30
aa4b851c
CJW
31EL
32Target RejectNegative Alias(mlittle-endian)
9304f876
CJW
33Generate code in little-endian mode.
34
aa4b851c
CJW
35; ---------------------------------------------------------------
36
9304f876
CJW
37mreduced-regs
38Target Report RejectNegative Negative(mfull-regs) Mask(REDUCED_REGS)
39Use reduced-set registers for register allocation.
40
41mfull-regs
42Target Report RejectNegative Negative(mreduced-regs) InverseMask(REDUCED_REGS)
43Use full-set registers for register allocation.
44
aa4b851c
CJW
45; ---------------------------------------------------------------
46
47mbig-endian
48Target Undocumented RejectNegative Negative(mlittle-endian) Mask(BIG_ENDIAN)
49Generate code in big-endian mode.
50
51mlittle-endian
52Target Undocumented RejectNegative Negative(mbig-endian) InverseMask(BIG_ENDIAN)
53Generate code in little-endian mode.
54
55
9304f876
CJW
56mcmov
57Target Report Mask(CMOV)
58Generate conditional move instructions.
59
aa4b851c
CJW
60mext-perf
61Target Report Mask(EXT_PERF)
9304f876
CJW
62Generate performance extension instructions.
63
aa4b851c
CJW
64mext-perf2
65Target Report Mask(EXT_PERF2)
66Generate performance extension version 2 instructions.
67
68mext-string
69Target Report Mask(EXT_STRING)
70Generate string extension instructions.
71
9304f876
CJW
72mv3push
73Target Report Mask(V3PUSH)
74Generate v3 push25/pop25 instructions.
75
76m16-bit
77Target Report Mask(16_BIT)
78Generate 16-bit instructions.
79
ff77f6e8
KC
80mvh
81Target Report Mask(VH)
82Enable Virtual Hosting support.
83
9304f876
CJW
84misr-vector-size=
85Target RejectNegative Joined UInteger Var(nds32_isr_vector_size) Init(NDS32_DEFAULT_ISR_VECTOR_SIZE)
86Specify the size of each interrupt vector, which must be 4 or 16.
87
88mcache-block-size=
89Target RejectNegative Joined UInteger Var(nds32_cache_block_size) Init(NDS32_DEFAULT_CACHE_BLOCK_SIZE)
90Specify the size of each cache block, which must be a power of 2 between 4 and 512.
91
92march=
93Target RejectNegative Joined Enum(nds32_arch_type) Var(nds32_arch_option) Init(ARCH_V3)
94Specify the name of the target architecture.
95
96Enum
97Name(nds32_arch_type) Type(enum nds32_arch_type)
667a055a 98Known arch types (for use with the -march= option):
9304f876
CJW
99
100EnumValue
101Enum(nds32_arch_type) String(v2) Value(ARCH_V2)
102
103EnumValue
104Enum(nds32_arch_type) String(v3) Value(ARCH_V3)
105
106EnumValue
107Enum(nds32_arch_type) String(v3m) Value(ARCH_V3M)
108
fe4c07dc 109mcmodel=
6855fa21 110Target RejectNegative Joined Enum(nds32_cmodel_type) Var(nds32_cmodel_option) Init(CMODEL_LARGE)
fe4c07dc
CJW
111Specify the address generation strategy for code model.
112
113Enum
114Name(nds32_cmodel_type) Type(enum nds32_cmodel_type)
115Known cmodel types (for use with the -mcmodel= option):
116
117EnumValue
118Enum(nds32_cmodel_type) String(small) Value(CMODEL_SMALL)
119
120EnumValue
121Enum(nds32_cmodel_type) String(medium) Value(CMODEL_MEDIUM)
122
123EnumValue
124Enum(nds32_cmodel_type) String(large) Value(CMODEL_LARGE)
125
7f3101c0
KC
126mcpu=
127Target RejectNegative Joined Enum(nds32_cpu_type) Var(nds32_cpu_option) Init(CPU_N9)
128Specify the cpu for pipeline model.
129
130Enum
131Name(nds32_cpu_type) Type(enum nds32_cpu_type)
132Known cpu types (for use with the -mcpu= option):
133
134EnumValue
135Enum(nds32_cpu_type) String(n9) Value(CPU_N9)
136
9304f876
CJW
137mctor-dtor
138Target Report
139Enable constructor/destructor feature.
140
141mrelax
142Target Report
143Guide linker to relax instructions.