2 Copyright 1988-2022 Free Software Foundation, Inc.
3 This is part of the GCC manual.
4 For copying conditions, see the copyright.rst file.
8 .. index:: NDS32 Options
15 These options are defined for NDS32 implementations:
17 .. option:: -mbig-endian
19 Generate code in big-endian mode.
21 .. option:: -mlittle-endian
23 Generate code in little-endian mode.
25 .. option:: -mreduced-regs
27 Use reduced-set registers for register allocation.
29 .. option:: -mfull-regs
31 Use full-set registers for register allocation.
35 Generate conditional move instructions.
39 Do not generate conditional move instructions.
41 .. option:: -mext-perf
43 Generate performance extension instructions.
45 .. option:: -mno-ext-perf
47 Do not generate performance extension instructions.
49 .. option:: -mext-perf2
51 Generate performance extension 2 instructions.
53 .. option:: -mno-ext-perf2
55 Do not generate performance extension 2 instructions.
57 .. option:: -mext-string
59 Generate string extension instructions.
61 .. option:: -mno-ext-string
63 Do not generate string extension instructions.
67 Generate v3 push25/pop25 instructions.
69 .. option:: -mno-v3push
71 Do not generate v3 push25/pop25 instructions.
75 Generate 16-bit instructions.
77 .. option:: -mno-16-bit
79 Do not generate 16-bit instructions.
81 .. option:: -misr-vector-size={num}
83 Specify the size of each interrupt vector, which must be 4 or 16.
85 .. option:: -mcache-block-size={num}
87 Specify the size of each cache block,
88 which must be a power of 2 between 4 and 512.
90 .. option:: -march={arch}
92 Specify the name of the target architecture.
94 .. option:: -mcmodel={code-model}
96 Set the code model to one of
99 All the data and read-only data segments must be within 512KB addressing space.
100 The text segment must be within 16MB addressing space.
103 The data segment must be within 512KB while the read-only data segment can be
104 within 4GB addressing space. The text segment should be still within 16MB
108 All the text and data segments can be within 4GB addressing space.
110 .. option:: -mctor-dtor
112 Enable constructor/destructor feature.
116 Guide linker to relax instructions.