Subsections


4.6.2 Port Specific Options

The port specific options appear after the global options in the sdcc —help output.

4.6.2.1 Code Generation Options

These options influence the generated assembler code.

—pstack-model=[model]
Used in conjunction with the command above. Defines the stack model to be used, valid stack models are:

—pno-banksel
Do not generate BANKSEL assembler directives.
—extended
Enable extended instruction set/literal offset addressing mode. Use with care!

4.6.2.2 Optimization Options

—obanksel=n
Set optimization level for inserting BANKSELs.

—denable-peeps
Force the usage of peepholes. Use with care.
—no-optimize-goto
Do not 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.

4.6.2.3 Assembling Options

—asm=
Sets the full path and name of an external assembler to call.
—mplab-comp
MPLAB compatibility option. Currently only suppresses special gpasm directives.

4.6.2.4 Linking Options

—link=
Sets the full path and name of an external linker to call.
—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=n
Place the interrupt vector table at address n. Useful for bootloaders.
—nodefaultlibs
Do not link default libraries when linking.
—use-crt=
Use a custom run-time module instead of the default (crt0i).
—no-crt
Don't link the default run-time modules

4.6.2.5 Debugging Options

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 being compiled.
—pcode-verbose
Enable pcode debugging information in translation.
—calltree
Dump call tree in .calltree file.
—gstack
Trace push/pops for stack pointer overflow.