Next: 4.6.3 Enviromental Variables
Up: 4.6 The PIC16 port
Previous: 4.6.1 Global Options
Contents
Index
Subsections
4.6.2 Port Specific Options
The port specific options appear after the global options in the sdcc
-help output.
General options enable certain port features and optimizations.
- [--stack-model=[model]]Used in conjuction with the command
above. Defines the stack model to be used, valid stack models are
:
- [small]Selects small stack model. 8 bit stack and frame pointers.
Supports 256 bytes stack size.
- [large]Selects large stack model. 16 bit stack and frame pointers.
Supports 65536 bytes stack size.
- [--preplace-udata-with=[kword]]Replaces the default udata
keyword for allocating unitialized data variables with [kword].
Valid keywords are: "udata_acs", "udata_shr",
"udata_ovr".
- [--ivt-loc]<nnnn> positions the Interrupt Vector Table at location
<nnnn>. Useful for bootloaders.
- [--asm=]sets the full path and name of an external assembler to
call.
- [--link=]sets the full path and name of an external linker to
call.
- [--mplab-comp]MPLAB compatibility option. Currently only suppresses
special gpasm directives.
- [--optimize-goto]Try to use (conditional) BRA instead of GOTO
- [--optimize-cmp]Try to optimize some compares.
- [--optimize-df]Analyze the dataflow of the generated code and
improve it.
- [--obanksel=nn]Set optimization level for inserting BANKSELs.
- [0]no optimization
- [1]checks previous used register and if it is the same then does
not emit BANKSEL, accounts only for labels.
- [2]tries to check the location of (even different) symbols and removes
BANKSELs if they are in the same bank.
Important: There might be problems if the linker script has
data sections across bank borders!
- [--nodefaultlibs]do not link default libraries when linking
- [--no-crt]Don't link the default run-time modules
- [--use-crt=]Use a custom run-time module instead of the defaults.
Debugging options enable extra debugging information in the output
files.
- [--debug-xtra]Similar to --debug, but dumps
more information.
- [--debug-ralloc]Force register allocator to dump <source>.d file
with debugging information. <source> is the name of the file compiled.
- [--pcode-verbose]Enable pcode debugging information in translation.
- [--denable-peeps]Force the usage of peepholes. Use with care.
- [--gstack]Trace push/pops for stack pointer overflow
- [--call-tree]dump call tree in .calltree file
Next: 4.6.3 Enviromental Variables
Up: 4.6 The PIC16 port
Previous: 4.6.1 Global Options
Contents
Index
Erik Petrich
2006-07-28