2.1 Supported Options

Following are the options supported by the CLAXP compiler.

Option

Interpretation


/?

Equivalent to /help (list compiler options)

/batch

Compile in Batch Mode

/c

Compile without Linking

/C

Preserve Comments During Preprocessing

/D

Define Constants and Macros

/E,/EP

Copy Preprocessor Output to Standard Output

/F

Set Stack Size

/Fa{file}

Set Alternate Output for listing (content controlled by /FA, see Supplementary Notes)

/FA{s}{c}

Set listing content (see Supplementary Notes)

CLAXP treats /FAa the same as /FAc.

/Fd

Specify program database

/Fc,/Fl

Set Alternate Output File for code listing (see Supplementary Notes)

/Fe

Set Alternate Output File for executable (EXE)

/FI{file}

Do include of file at line 0 (see Supplementary Notes)

/Fm

Set Alternate Output File for linker map (MAP)

/Fo

Set Alternate Output File for object (OBJ)

/Fp

Set Alternate Output File for Precompiled header (PCH)

/FR,/Fr

Set Alternate Output File for PWB Source Browser (SBR)

/Ge,/Gs

Turn Stack Checking On/Off

/Gf

Enable string pooling

/Gt{num}

Data size threshold(global pointer threshold, see Supplementary Notes)

/Gh

Generate Call to __penter in All Function Calls

/Gy

Enable Function-Level Linking

/Gz

Choose the Default Calling Convention

/H

Max external name length

/HELP,/help

List Compiler Options

/I

Set Search Directory for Include Files

/J

Change Default char Type to unsigned

/link

Remainder of command line passed to the linker

/nologo

Suppress Display of Sign-On Banner

/O

Optimize (for Speed) - same as /O2

/O1

Minimum space optimization (see Supplementary Notes)

/O2

All speed optimizations (see Supplementary Notes)

/Ob{num}

Inlining controls

/Od

Turn Off All Optimization (default)

/Oi

Generate Intrinsic Functions

/Op,/Op-

Optimize as Accuracy Sensitive (see Supplementary Notes)

/Ox

Maximum Optimization (see Supplementary Notes)

/P

Create Preprocessor-Output File

/QA{str}

AXP-specific options (see Supplementary Notes)

/Tc,/Tp

Specify C/C++ Source File

/U,/u

Remove Predefined Names

/V

Set Version String

/vd0, /vd1, /vmb, /vmg, /vmm, /vms, /vmv

Control C++ details

/w,/W{num}

Set warning level

/WX

Treat all warnings as errors

/X

Ignore standard include directory search path

/Yc,/Yd,/Yu

Precompiled Header Options

/YX

Use automatic precompiled headers

/Za,/Ze

ANSI vs Extended Language Features

/Zg

Generate Function Prototypes

/Zh

Home All Arguments (see Supplementary Notes)

/Zi

Compile for Debugging (include Codeview information for Windbg)

/Zd

Compile for Debugging (include line number info)

/Zp[num]

Pack Structure Members (default is /Zp8, /Zp is treated as /Zp1)

/Zn

Turn Off SBRPACK Utility

/Zs

Check Syntax Only

/Z7

Create C7 style Codeview information(Same_as_/Zi)