Shell Control Options
SC100 C Compiler
3-13
e) C language options
Option
Effect
Section
Page
-ansi
Strict ANSI mode. Assumes all C source files contain ANSI/ISO
versions of the language, with no extensions. The default mode is the
ANSI/ISO version with extensions.
3.3.5.1
3-21
-kr
K&R/pcc mode. Assumes all C source files contain K&R/pcc versions
of the language. The default mode is the ANSI/ISO version with
extensions.
3.3.5.1
3-21
-g
Adds debug information to generated files.
3.3.5.2
3-21
-sc
(Default)
Makes char type variables signed.
3.3.5.3
3-21
-usc
Makes char type variables unsigned. The default setting is signed.
3.3.5.3
3-21
f) Optimization pragma and code options
Option
Effect
Section
Page
-O0
Disables all optimizations except constant folding. Outputs
non-optimized assembly object code.
5.3.2.5
5-17
-O1
Omits all low level optimization steps. Performs all high level
optimizations, and outputs optimized linear assembly object code.
If the
-Og
option is also specified, high level optimizations are
applied in global mode.
5.3.2
5-9
-O
or
-O2
(Default)
Performs all high level and low level optimizations. Outputs optimized
assembly object code. If the
-Og
option is also specified,
optimizations are applied in global mode.
5.3.3
5-19
-Os
Performs all optimizations, with more emphasis on space
optimization than on time optimization. Outputs optimized assembly
object code which is small as opposed to fast. Applies the
optimizations in global mode if the
-Og
option is also specified.
5.3.5
5-30
-Ot
or
Ot1
Performs all optimizations, with more emphasis on time optimization
than on space optimization. Outputs optimized assembly object code
which is fast as opposed to small. If the
-Og
option is also specified,
the optimizations are applied in global mode.
5.3.4
5-29
-Ot2
Performs all optimizations, with the most emphasis on time
optimization. Outputs the fastest possible form of optimized assembly
object code. Applies the optimizations in global mode if the
-Og
option is also specified.
5.3.4
5-29
-Og
Performs global optimization. The default is non-global optimization.
This option can be specified together with any of the optimization
options
-O1
through
-Ot2
listed above.
5.3.6
5-30
g) Pass-through options
Option
Effect
Section
Page
-Xasm
option
Passes
option
to the assembler.
3.3.6
3-22
-Xlnk
option
Passes
option
to the Linker.
3.3.6
3-22
Table 3-2. Shell Options Summary (Continued)