Open System Services Shell and Utilities Reference Manual (G06.28+, H06.05+)

c89(1) OSS Shell and Utilities Reference Manual
c89 performs the following steps:
1. If the corresponding -W ag is specied, invokes an SQL preprocessor to process any
embedded SQL statements in C or C++ source les, creating C only, C++ only, or
module denition les as appropriate.
2. Compiles any specied C and C++ source les or source les produced by Step 1 into
object les.
3. If the -Wmxcmp ag is specied, invokes the NonStop SQL/MX compiler to process
les created by Step 1 or specied as module denition les in the command.
4. Links the object les together with any libraries specied on the command line. (This
occurs if no ags that prevent linking are specied and the source les are compiled
without errors.)
5. If the -Wsqlcomp ag is specied, invokes the NonStop SQL/MP compiler to process
les created by Step 1 or specied in the command.
6. Writes an executable object le or library to the le specied by a -o ag (if present) or
to the le a.out.
Libraries can be:
Archives, with a sufxof.a
DLLs, with a sufxof.so
TNS/R native user libraries
TNS/R native SRLs, with a sufxof.srl
The default executable le in the Guardian le system is aout in the subvolume from which c89
is invoked.
If only a single source le is given and no ags that suppress linking are specied, then the le is
compiled into an object le and linked into an executable object le. If the executable le is
created successfully, the object le is removed.
c89 places object les (loadles) in the current working directory with the same base name as the
corresponding source le, but with a sufxof.o.
c89 also names several temporary or intermediate les that are created during the compilation
process. Like the output object le, c89 places these les in the current working directory. c89
removes these temporary or intermediate les unless the -Wsavetemps ag is specied.
If -Wsystype=oss is set, the C and C++ compilers dene the predened feature-test macros
_OSS_TARGET and _XOPEN_SOURCE.If-Wsystype=guardian is set, the C and C++ com-
pilers dene the predened feature-test macros _GUARDIAN_TARGET and
_TANDEM_SOURCE. These macros are used in the standard header les to determine the exe-
cution environment of a program. The feature-test macros can also be dened with a -D ag.
Because these macros are dened internally, not by c89, the macros are not dened when
-Wdryrun or -Wv are used.
220 Hewlett-Packard Company 527188-007