C/C++ Programmer's Guide (G06.25+)
Compiling, Binding, and Accelerating TNS C++
Programs
HP C/C++ Programmer’s Guide for NonStop Systems—429301-008
15-16
Working in the G-Series OSS Environment
TNS c89 Flags
You can invoke Cfront through the TNS c89 utility with the -Wcfront flag using the
following 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.
Table 15-2. Commonly Used TNS c89 Flags
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.
-Wsystype=guardian
Specifies the Guardian execution environment.
-Wsystype=oss
Specifies the OSS execution environment (this is the default
environment).
-Wverbose
Displays more detailed information during the program
generation process from the C compiler, Binder, Accelerator,
and SQL compiler.
In particular, Cfront does not default to sending the Cfront
banner or error counts to stderr when running in the OSS
environment. Specify the -Wverbose flag to cause the
banner and error counts to be sent to stderr.