beautypg.com

Command line switches, Able, Ommand – Zilog Z80380 User Manual

Page 41: Line, Switches

background image

UM004001-COR1103

2–7

C-Compiler Overview

INTERRUPT FUNCTIONS

C

OMMAND

LINE

SWITCHES

The following command-line switches are recognized.

T

ABLE

2-2. C

OMMAND

LINE

SWITCHES

Switch

Function

-D

Define a preprocessor macro

-g

Generate symbolic debug information

-I

Specify include path. This option may be repeated to specify multiple
include paths

-Nbss

Names the uninitialized data section. Default is .bss.

-Ndata

Names the initialized data section. Default is .data.

-Ntext

Names the text section. Default is .text.

-0

Specifies the output assembly file name

-O0

No optimization

-O1

Level 1 optimization—Basic optimizations: Constant folding, dead
object removal and simple jump optimization

-O2

Level 2 optimization—Constant propagation, copy propagation, dead
code elimination, common sub expression elimination, jump to jump
optimization, tail recursion elimination, loop invariant code motion,
constant condition evaluation and other condition evaluation
optimizations, constant evaluation and expression simplification and all
the optimizations in level 1

-O3

Level 3 optimization—All the optimizations in level 2 are performed
twice. Also any redirection on a read only non-volatile global or static
data is replaced by a copy of its initial expression.

-O4

Level 4 optimization—All the optimizations in level 2 are performed three
times. Also common subexpression elimination is attempted through
transformation of expression trees (

This is the default optimization

level)

-P

Specifies where to write the pre-processors’ ouput file

-V

Display compiler version number

-W

Enable warning messages

-Wa

Enable portability warnings about accuracy loss in conversions

-Wall

Equivalent to specifying all of the warning options

-Wansi

Enable warnings about non-ANSI usage

-Wb

Enable warnings about unreachable break statements

-Wd

Enable warnings about variable usage, such as unused variable, defined
but not used, etc.