Skip to content

Commit 942caad

Browse files
committed
Options added
More options added to pic14 and pic16 mode
1 parent 541f241 commit 942caad

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

src/org/laczik/toolchainSDCC/sdcc.optionLanguage.xml

+30
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@
9797
<opt:booleanOption opt:id="no-pcode-opt" opt:name="Disable pCode optimazion" opt:trueemission="--no-pcode-opt" opt:unsuppressif="${is.pic14}">
9898
<opt:xhtml>Disable (slightly faulty) optimization on pCode.</opt:xhtml>
9999
</opt:booleanOption>
100+
<opt:stringOption opt:id="stack-size14" opt:name="Stack size" opt:emissionprefix="--stack-size " opt:validatorclass="com.microchip.mplab.nbide.toolchainCommon.opt.validation.CSyntaxNumberValidator" opt:unsuppressif="${is.pic14}">
101+
<opt:xhtml>Sets the size if the argument passing stack (default: 16, minimum: 4)</opt:xhtml>
102+
</opt:stringOption>
100103
<opt:booleanOption opt:id="no-extended-instr" opt:name="No extended instructions" opt:trueemission="--no-extended-instructions" opt:unsuppressif="${is.pic14}">
101104
<opt:xhtml>Forbid use of the extended instruction set.</opt:xhtml>
102105
</opt:booleanOption>
@@ -138,6 +141,9 @@
138141
<opt:xhtml>Tries to check the location of (even different) symbols and removes BANKSELs if they are in the same bank.</opt:xhtml>
139142
</opt:selection>
140143
</opt:enumOption>
144+
<opt:booleanOption opt:id="denable-peeps" opt:name="Enable peepholes" opt:trueemission="--denable-peeps" opt:unsuppressif="${is.pic16}">
145+
<opt:xhtml>Explicit enable of peepholes</opt:xhtml>
146+
</opt:booleanOption>
141147
<opt:booleanOption opt:id="no-optimize-goto" opt:name="Don't optimize goto's" opt:trueemission="--no-optimize-goto" opt:unsuppressif="${is.pic16}">
142148
<opt:xhtml>Do not use (conditional) BRA instead of GOTO.</opt:xhtml>
143149
</opt:booleanOption>
@@ -147,6 +153,20 @@
147153
<opt:booleanOption opt:id="optimize-df" opt:name="Dataflow optimize" opt:trueemission="--optimize-df" opt:unsuppressif="${is.pic16}">
148154
<opt:xhtml>Analyze the dataflow of the generated code and improve it.</opt:xhtml>
149155
</opt:booleanOption>
156+
<opt:enumOption opt:id="preplace-udata-with" opt:name="Location of constants" opt:textdefault="" opt:emissionprefix="--preplace-udata-with=" opt:emitswhendefault="false" opt:unsuppressif="${is.pic16}">
157+
<opt:selection opt:text="" opt:name="No replace">
158+
<opt:xhtml>No replace.</opt:xhtml>
159+
</opt:selection>
160+
<opt:selection opt:text="udata_acs" opt:name="udata_acs">
161+
<opt:xhtml>udata_acs</opt:xhtml>
162+
</opt:selection>
163+
<opt:selection opt:text="udata_ovr" opt:name="udata_ovr">
164+
<opt:xhtml>udata_ovr</opt:xhtml>
165+
</opt:selection>
166+
<opt:selection opt:text="udata_shr" opt:name="udata_shr">
167+
<opt:xhtml>udata_shr</opt:xhtml>
168+
</opt:selection>
169+
</opt:enumOption>
150170
<opt:booleanOption opt:id="debug-xtra16" opt:name="Output more debug info" opt:trueemission="--debug-xtra" opt:unsuppressif="${is.pic16}">
151171
<opt:xhtml>Similar to --debug, but dumps more information.</opt:xhtml>
152172
</opt:booleanOption>
@@ -156,6 +176,12 @@
156176
<opt:booleanOption opt:id="nodefaultlibs" opt:name="No default librarys" opt:trueemission="--nodefaultlibs" opt:unsuppressif="${is.pic16}">
157177
<opt:xhtml>Do not link default libraries when linking.</opt:xhtml>
158178
</opt:booleanOption>
179+
<opt:booleanOption opt:id="calltree" opt:name="Dump call tree" opt:trueemission="--calltree" opt:unsuppressif="${is.pic16}">
180+
<opt:xhtml>Dump call tree in .calltree file.</opt:xhtml>
181+
</opt:booleanOption>
182+
<opt:booleanOption opt:id="gstack" opt:name="Trace stack pointer push/pop" opt:trueemission="--gstack" opt:unsuppressif="${is.pic16}">
183+
<opt:xhtml>Trace stack pointer push/pop to overflow.</opt:xhtml>
184+
</opt:booleanOption>
159185
<opt:booleanOption opt:id="no-crt" opt:name="No runtime library" opt:trueemission="--no-crt" opt:unsuppressif="${is.pic16}">
160186
<opt:xhtml>Don’t link the default run-time modules.</opt:xhtml>
161187
</opt:booleanOption>
@@ -190,6 +216,7 @@
190216
<opt:enablePattern opt:idref="allow-unsafe-read" opt:expr="--allow-unsafe-read"/>
191217

192218
<opt:enablePattern opt:idref="debug-xtra14" opt:expr="--debug-xtra"/>
219+
<opt:submatchPattern opt:idref="stack-size14" opt:expr="--stack-size (\d)"/>
193220
<opt:enablePattern opt:idref="no-pcode-opt" opt:expr="--no-pcode-opt"/>
194221
<opt:enablePattern opt:idref="no-extended-instr" opt:expr="--no-extended-instructions"/>
195222

@@ -204,9 +231,12 @@
204231
<opt:enablePattern opt:idref="no-optimize-goto" opt:expr="--no-optimize-goto"/>
205232
<opt:enablePattern opt:idref="optimize-cmp" opt:expr="--optimize-cmp"/>
206233
<opt:enablePattern opt:idref="optimize-df" opt:expr="--optimize-df"/>
234+
<opt:submatchPattern opt:idref="preplace-udata-with" opt:expr="--preplace-udata-with=(udata_acs|udata_ovr|udata_shr)"/>
207235
<opt:enablePattern opt:idref="debug-xtra16" opt:expr="--debug-xtra"/>
208236
<opt:enablePattern opt:idref="pcode-verbose" opt:expr="--pcode-verbose"/>
209237
<opt:enablePattern opt:idref="nodefaultlibs" opt:expr="--nodefaultlibs"/>
238+
<opt:enablePattern opt:idref="calltree" opt:expr="--calltree"/>
239+
<opt:enablePattern opt:idref="gstack" opt:expr="--gstack"/>
210240
<opt:enablePattern opt:idref="no-crt" opt:expr="--no-crt"/>
211241
<opt:submatchPattern opt:idref="use-crt" opt:expr="--use-crt=(.+)"/>
212242
</opt:optionLanguage>

0 commit comments

Comments
 (0)