C/C++ Programmer's Guide (G06.27+, H06.03+)

Table Of Contents
Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems429301-010
15-15
Working in the G-Series OSS Environment
The simplified syntax of the TNS c89 utility is:
flag
is a valid c89 utility flag.
operand,
is a valid c89 utility operand.
TNS c89 Flags
You can invoke Cfront through the TNS c89 utility with the -Wcfront flag using this
syntax:
-Wcfront[="args"]
When TNS c89 sees the ="args" portion of the -Wcfront flag, c89 passes to Cprep
the argument string enclosed in the double quotation marks. Table 15-2 lists other
commonly used TNS c89 flags.
c89 [flag...] operand...
Table 15-2. Commonly Used TNS c89 Flags (page1of2)
Flag Function
-c
Compiles the specified source files but does not bind them.
-E
Runs only Cprep and directs output to the standard output
file.
-o outfile
Specifies the pathname outfile, instead of the default
a.out.
-O
Generates an accelerated object file.
-Wcfonly
Stops processing the source file after Cfront is done, and
sends output from Cfront to the standard output file.
-Wcfront="arguments"
Passes argument strings to Cprep and Cfront. If the
-Wcfonly flag is also specified, output from Cfront is sent
to the standard output file and no compilation is performed.
Otherwise, output from Cfront is sent to the C compiler.
-Wcprep="arguments"
Passes an argument string to Cprep, and stops processing
the source file after this preprocessing stage.