Open System Services Shell and Utilities Reference Manual (G06.29+, H06.08+, J06.03+)

c99(1) OSS Shell and Utilities Reference Manual
-D name[="value" ]
Defines the preprocessor symbol name as value. It is equivalent to a #define directive
in the source. If no value is given, name is defined as 1. The -D flag has lower pre-
cedence than the -U flag. Thus, if name is specified in both a -U and a -D flag, name is
undefined regardless of the order of the flags.
Use this flag to define compiler feature-test macros.
When the NonStop SQL/MX preprocessor is invoked, all -D specifications are
automatically passed to the preprocessor as the preprocessor’s -d options.
-E Preprocesses the specified source files. No compilation or linking is performed. Out-
put is sent to the standard output file and contains #line directives.
If the -Wsqlmx flag is specified, embedded NonStop SQL/MX statements are pro-
cessed.
The -WH and -WM flags override the -E flag.
-g Produces in the object or executable les information (symbol tables) used for sym-
bolic debugging.
-I directory
Adds directory to the list of directories searched to locate #include files with relative
pathnames. (Relative pathnames do not begin with a slash, ’/’). #include filenames
enclosed in double quotes are searched for first in the directory of the file with the
#include directive, then in directories named with -I flags, and last in the standard
include directories. #include filenames enclosed in angle brackets (<>) are searched
for first in directories named with -I flags and then in the standard include directories.
Refer to the Standard Include Directories subsection for details.
-L directory
Adds directory to the list of directories searched to locate libraries specified by
operands of the form -l library. See the Operands subsection for details.
-o outfile Uses the pathname outfile
instead of the default pathname a.out for
the name of the
output object file.
If only one source file is specified and the -c flag is specified, the generated output is
placed into outfile. Only one -o flag can be specified. The file specified cannot be an
SQL preprocessing output file.
If a single source file is compiled and linked in one invocation of c99, and if the outfile
is the same name as that of the input object file, c99 issues a warning message and
places the output in a temporary file.
-Ooptlevel
Sets the compiler to the optimization level specified by optlevel, where optlevel is 0
(zero), 1, or 2. If this flag is not set, the application is compiled at optimization level 1.
If -O is specified without a value for optlevel, the application is compiled at optimiza-
tion level 2. This option is equivalent to the c89 -Woptimize=n option.
-s Strips symbolic information not required for proper execution from object and execut-
able files. The resulting object file cannot be debugged using a symbolic debugger.
This flag is ignored if the -Wr flag is also specified.
238 Hewlett-Packard Company 527188-021