Previous | Contents | Index |
For information about other compiler features that affect pointer size or warn about potential pointer size conflicts, see the following:
Option | Usage |
---|---|
SINGLE | Performs floating-point operations in single precision. |
DOUBLE | Performs floating-point operations in double precision. |
Your code may execute faster if it contains float variables and is compiled with /PRECISION=SINGLE. However, the results of your floating-point operations will be less precise. See the DEC C Language Reference Manual for more information on floating-point variables.
The default is /PRECISION=DOUBLE for /STANDARD=VAXC and /STANDARD=COMMON compiler modes.
The default is /PRECISION=SINGLE for /STANDARD=ANSI89 and /STANDARD=RELAXED_ANSI89 compiler modes.
The /[NO]PREFIX_LIBRARY_ENTRIES qualifier lets you control the DEC C RTL name prefixing. Table 1-18 describes the /PREFIX_LIBRARY_ENTRIES qualifier options.
Option | Usage |
---|---|
EXCEPT = ( name,...) | The names specified are not prefixed. |
ALL_ENTRIES | All DEC C RTL names are prefixed. |
ANSI_C89_ENTRIES | Only ANSI C library names are prefixed. |
RTL=" name" | Generates references to the C RTL indicated by the name keyword. (The name keyword has a length limit of 24 characters for OpenVMS VAX systems and 1017 characters for OpenVMS Alpha systems.) If no keyword is specified, then references to the DEC C RTL are generated by default. To use an alternate RTL, see its documentation for the name to use. |
If you want no names prefixed, specify /NOPREFIX_LIBRARY_ENTRIES.
On OpenVMS Alpha systems:
On OpenVMS VAX systems, the default is /PREFIX_LIBRARY_ENTRIES=(ALL_ENTRIES), regardless of the /STANDARD setting.
If you do not specify a file name for the preprocessor output, the name of the output file defaults to the file name of the input file with a .I file type.
The default is /NOPREPROCESS_ONLY.
The problem this switch solves can occur when a psect generated by a Fortran COMMON block is overlaid with a psect consisting of a C struct. Because Fortran COMMON blocks are not padded, if the C struct is padded, the inconsistent psect sizes can cause linker error messages.
Compiling with /PSECT_MODEL=MULTILANGUAGE ensures that DEC C uses a consistent psect size allocation scheme. The corresponding Fortran switch is /ALIGN=COMMON=[NO]MULTILANGUAGE.
The default is /PSECT=NOMULTILANGUAGE, which is the old default behavior of the compiler, and is sufficient for most applications.
Table 1-19 describes the /REENTRANCY qualifier options.
Option | Usage |
---|---|
AST | Uses the __TESTBITSSI built-in function to perform simple locking around critical sections of RTL code, and may additionally disable asynchronous system traps (ASTs) in locked region of codes. This type of locking should be used when AST code contains calls to DEC C RTL I/O routines. |
MULTITHREAD | Designed to be used in conjunction with the DECthreads product. It performs DECthreads locking and never disables ASTs. |
NONE | Gives optimal performance in the RTL, but does absolutely no locking around critical sections of RTL code. It should only be used in a single threaded environment when there is no chance that the thread of execution will be interrupted by an AST that would call the DEC C RTL. |
TOLERANT | Uses the __TESTBITSSI built-in function to perform simple locking around critical sections of RTL code, but ASTs are not disabled. This type of locking should be used when ASTs are used and must be delivered immediately. |
The default is /REENTRANCY=TOLERANT.
By default, the qualifier is not active unless /NAMES=SHORTENED has been specified, in which case the default is /REPOSITORY=[.CXX_REPOSITORY].
The default name of the repository is the same as that used by the DEC C++ compiler for decoding mangled names. This is intentional. A C++ mangled name cannot match a shortened name, so a single repository can be used by both the DEC C and DEC C++ compilers.
Option | Usage |
---|---|
NEAREST | Sets the normal rounding mode (unbiased round to nearest). This is the default. |
DYNAMIC | Sets the rounding mode for IEEE floating-point instructions dynamically, as determined from the contents of the floating-point control register. |
MINUS_INFINITY | Rounds toward minus infinity. |
CHOPPED | Rounds toward 0. |
If /FLOAT=G_FLOAT or /FLOAT=D_FLOAT is specified, then rounding defaults to /ROUNDING_MODE=NEAREST, with no other choice of rounding mode.
Also, in conjunction with the /EXTERN_MODEL qualifier, controls whether the initial extern_model is shared or not shared (for those extern_model s where it is allowed). The initial extern_model of the compiler is a fictitious pragma constructed from the settings of the /EXTERN_MODEL and /SHARE_GLOBALS qualifiers.
The default value is /NOSHARE_GLOBALS. This default value is different from VAX C, which treats external objects as shared by default. As a result, you may experience the following impact:
Option | Usage |
---|---|
ALL | Prints all listing information. |
[NO]BRIEF |
Creates the same listing as the option SYMBOLS except that BRIEF
eliminates from the list any identifiers that are not referenced in the
program, and are not members of a structure or union that is referenced
in the program.
The NOBRIEF option is the default. |
[NO]CROSS_REFERENCE |
Specifies whether the compiler generates cross-references. If you
specify /SHOW=CROSS_REFERENCE, the compiler lists, for each variable
referenced in the procedure, the line numbers of the lines on which the
variable is referenced.
You may use /SHOW=CROSS_REFERENCE with /SHOW=SYMBOLS. Otherwise, specifying /SHOW=CROSS_REFERENCE also gives you /SHOW=BRIEF. To obtain any type of listing, you must specify /LIST. Specifying /SHOW=CROSS_REFERENCE is the same as specifying /[NO]CROSS_REFERENCE. The NOCROSS_REFERENCE option is the default. |
[NO]DICTIONARY |
Places CDD/Repository definitions---included in the program with the
#pragma dictionary
preprocessor directive---into the listing file. These data definitions
are marked in the listing file with an uppercase letter D in the
listing margin.
The NODICTIONARY option is the default. |
[NO]EXPANSION |
Places final macro expansions in the program listing. When you specify
this option, the number printed in the margin indicates the maximum
depth of macro substitutions that occur on each line.
The NOEXPANSION option is the default. |
[NO]HEADER |
Produces the header lines at the top of each page of a listing.
The HEADER option is the default. |
[NO]INCLUDE |
Places the contents of
#include
files and modules in the program listing.
The NOINCLUDE option is the default. |
[NO]INTERMEDIATE (VAX ONLY) |
Places all intermediate and final macro expansions in the program
listing.
The NOINTERMEDIATE option is the default. |
NONE | Creates an empty listing file with only the header. If you specify this option on a CC command line that contains /LIST and /MACHINE_CODE, the compiler places machine code in the listing file. |
[NO]SOURCE |
Places the source program statements in the program listing.
The SOURCE option is the default. |
[NO]STATISTICS |
Places compiler performance statistics in the program listing.
The NOSTATISTICS option is the default. |
[NO]SYMBOLS |
Places the symbol table of the compiled program in the program listing.
The symbol table includes a list of all functions, the sizes and
attributes of all variables referenced in the program, and a program
section summary and function definition map.
The NOSYMBOLS option is the default. |
[NO]TERMINAL (VAX ONLY) |
Displays compiler messages to the terminal. Use /SHOW=NOTERMINAL to
suppress compiler messages to the terminal or to a batch log file.
The TERMINAL option is the default. |
[NO]TRANSLATION (VAX ONLY) |
Places into the listing file all UNIX system file specifications that
the compiler translates to OpenVMS file specifications. See the
DEC C Run-Time Library Reference Manual for OpenVMS Systems for more information on file translation.
The NOTRANSLATION option is the default. |
This qualifier directs the compiler to flag certain DEC C-specific constructs and DEC C relaxations of conventional C language constructs and rules. For example, the conversions from pointer to integer and back again are subject to more stringent tests when you specify /STANDARD=ANSI89.
The /STANDARD qualifier options are mutually exclusive. Do not combine them.
If you specify /STANDARD without an option, the default is /STANDARD= ANSI89.
The default is /NOSTANDARD, which is equivalent to /STANDARD= RELAXED_ANSI89.
With one exception, the /STANDARD qualifier options are mutually exclusive. Do not combine them. The exception is that you can specify /STANDARD=ISOC94 with any other option except VAXC.
DEC C modules compiled in different modes can be linked and executed together.
The CC command is used to invoke either the VAX C or DEC C compiler. If your system has a VAX C compiler installed on it, the DEC C installation procedure provides the option of specifying which compiler will be invoked by default when just the CC command is used. To invoke the compiler that is not the default, use the CC command with the appropriate qualifier: CC/DECC for the DEC C compiler, or CC/VAXC for the VAX C compiler.
If your system does not have a VAX C compiler installed on it, the CC command will invoke the DEC C compiler, and the /VAXC qualifier is not supported.
This qualifier makes it easier for you to report what compiler you are using.
To display the compiler version and platform when issuing the CC command for a source file that does not exist, enter:
|
Table 1-22 describes the /WARNING qualifier options.
Option | Usage |
---|---|
DISABLE= message-list |
Suppresses the issuance of the specified messages.
A description of message-list follows this table. Only messages of severity Warning (W) or Information (I) can be disabled. If the message has severity of Error (E) or Fatal (F), it is issued regardless of any attempt to disable it. |
ENABLE= message-list | Enables issuance of the specified messages. |
NOINFORMATIONALS | Suppresses informational messages. |
EMIT_ONCE= message-list |
Emits the specified messages only once per compilation.
Certain messages are emitted only the first time the compiler encounters the causal condition. When the compiler encounters the same condition later in the program, no message is emitted. Messages about the use of language extensions are an example of this kind of message. To emit one of these messages every time the causal condition is encountered, use the EMIT_ALWAYS option. Errors and Fatals are always emitted. You cannot set them to EMIT_ONCE. |
EMIT_ALWAYS= message-list | Emits the specified messages at every occurrence of the causal condition. |
ERRORS= message-list |
Sets the severity of the specified messages to Error.
Supplied Error messages and Fatal messages cannot be made less severe. (Exception: A message can be upgraded from Error to Fatal, then later downgraded to Error again, but it can never be downgraded from Error.) Warnings and Informationals can be made any severity. |
FATALS= message-list | Sets the severity of the specified messages to Fatal. |
INFORMATIONALS= message-list | Sets the severity of the specified messages to Informational. Note that Fatal and Error messages cannot be made less severe. |
WARNINGS= message-list | Sets the severity of the specified messages to Warning. Note that Fatal and Error messages cannot be made less severe. |
For a description of what to specify for the message-list, see the #pragma message preprocessor directive (Section 5.4.11).
|
The default is /WARNINGS=ENABLE=LEVEL3.
Previous | Next | Contents | Index |