[NDS32] Change to large model by default.
[official-gcc.git] / gcc / config / nds32 / nds32.opt
blob68f73a91a6f03cf7e29efec7773a7242896e089a
1 ; Options of Andes NDS32 cpu for GNU compiler
2 ; Copyright (C) 2012-2018 Free Software Foundation, Inc.
3 ; Contributed by Andes Technology Corporation.
5 ; This file is part of GCC.
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.
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.
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/>.
21 HeaderInclude
22 config/nds32/nds32-opts.h
24 ; ---------------------------------------------------------------
25 ; The following options are designed for aliasing and compatibility options.
28 Target RejectNegative Alias(mbig-endian)
29 Generate code in big-endian mode.
32 Target RejectNegative Alias(mlittle-endian)
33 Generate code in little-endian mode.
35 ; ---------------------------------------------------------------
37 mreduced-regs
38 Target Report RejectNegative Negative(mfull-regs) Mask(REDUCED_REGS)
39 Use reduced-set registers for register allocation.
41 mfull-regs
42 Target Report RejectNegative Negative(mreduced-regs) InverseMask(REDUCED_REGS)
43 Use full-set registers for register allocation.
45 ; ---------------------------------------------------------------
47 mbig-endian
48 Target Undocumented RejectNegative Negative(mlittle-endian) Mask(BIG_ENDIAN)
49 Generate code in big-endian mode.
51 mlittle-endian
52 Target Undocumented RejectNegative Negative(mbig-endian) InverseMask(BIG_ENDIAN)
53 Generate code in little-endian mode.
56 mcmov
57 Target Report Mask(CMOV)
58 Generate conditional move instructions.
60 mext-perf
61 Target Report Mask(EXT_PERF)
62 Generate performance extension instructions.
64 mext-perf2
65 Target Report Mask(EXT_PERF2)
66 Generate performance extension version 2 instructions.
68 mext-string
69 Target Report Mask(EXT_STRING)
70 Generate string extension instructions.
72 mv3push
73 Target Report Mask(V3PUSH)
74 Generate v3 push25/pop25 instructions.
76 m16-bit
77 Target Report Mask(16_BIT)
78 Generate 16-bit instructions.
80 misr-vector-size=
81 Target RejectNegative Joined UInteger Var(nds32_isr_vector_size) Init(NDS32_DEFAULT_ISR_VECTOR_SIZE)
82 Specify the size of each interrupt vector, which must be 4 or 16.
84 mcache-block-size=
85 Target RejectNegative Joined UInteger Var(nds32_cache_block_size) Init(NDS32_DEFAULT_CACHE_BLOCK_SIZE)
86 Specify the size of each cache block, which must be a power of 2 between 4 and 512.
88 march=
89 Target RejectNegative Joined Enum(nds32_arch_type) Var(nds32_arch_option) Init(ARCH_V3)
90 Specify the name of the target architecture.
92 Enum
93 Name(nds32_arch_type) Type(enum nds32_arch_type)
94 Known arch types (for use with the -march= option):
96 EnumValue
97 Enum(nds32_arch_type) String(v2) Value(ARCH_V2)
99 EnumValue
100 Enum(nds32_arch_type) String(v3) Value(ARCH_V3)
102 EnumValue
103 Enum(nds32_arch_type) String(v3m) Value(ARCH_V3M)
105 mcmodel=
106 Target RejectNegative Joined Enum(nds32_cmodel_type) Var(nds32_cmodel_option) Init(CMODEL_LARGE)
107 Specify the address generation strategy for code model.
109 Enum
110 Name(nds32_cmodel_type) Type(enum nds32_cmodel_type)
111 Known cmodel types (for use with the -mcmodel= option):
113 EnumValue
114 Enum(nds32_cmodel_type) String(small) Value(CMODEL_SMALL)
116 EnumValue
117 Enum(nds32_cmodel_type) String(medium) Value(CMODEL_MEDIUM)
119 EnumValue
120 Enum(nds32_cmodel_type) String(large) Value(CMODEL_LARGE)
122 mcpu=
123 Target RejectNegative Joined Enum(nds32_cpu_type) Var(nds32_cpu_option) Init(CPU_N9)
124 Specify the cpu for pipeline model.
126 Enum
127 Name(nds32_cpu_type) Type(enum nds32_cpu_type)
128 Known cpu types (for use with the -mcpu= option):
130 EnumValue
131 Enum(nds32_cpu_type) String(n9) Value(CPU_N9)
133 mctor-dtor
134 Target Report
135 Enable constructor/destructor feature.
137 mrelax
138 Target Report
139 Guide linker to relax instructions.