Open System Services Programmer's Guide
TIP: The OSS Core Utilities User Commands appendix in the Open System Services User's Guide
provides details for viewing the OSS Core Utilities reference pages.
Compilation Tools
The c89 and c99 utilities control the C compilation system in the OSS environment. There are
native versions of c89 and c99 for TNS/E systems, a native version of c89 for TNS/R systems,
and a TNS version of c89 for TNS/R systems. (A TNS version of c89 is not supported on TNS/E
systems). The native versions are the default versions. The c99 utility is supported for TNS/E targets
on TNS/E systems only.
Native c89 and native c99 provide an interface to the components of the C compilation system,
including the C and C++ language preprocessors, C and C++ compilers, linkers (nld, ld, and
eld utilities), optimizer (built into the compilers), and the SQL compilers. The noft (on TNS/R
systems) and enoft (on TNS/E systems) utilities allow you to examine various attributes of native
object files.
TNS c89 provides an interface to the components of the C compilation system, including the C
and C++ language preprocessors, C and C++ compilers, linkers (Binder), Accelerator (on TNS/R
systems), and the SQL/MP compiler.
Table 3 shows some sample c89 commands. For each sample command, the table shows the
name of the output file produced and what operations are performed.
Table 3 Sample c89 Commands
Operations PerformedOutput FileCommand
a.outc89 test1.c
• TNS/R target: Compiles, links (using the default linker
nld), produces non-PIC executable program file.
• TNS/E target: Compiles, links (using the eld linker),
produces PIC (position-independent code) executable
program file.
Compiles, links (using the ld linker for TNS/R target, or
the eld linker for TNS/E target), produces
position-independent code (PIC) executable file.
a.outc89 test1.c -Wcall_shared
Compiles, links, generates symbolic information for
debugging (used by the Inspect debugger for a TNS/R
a.outc89 -g test1.c
target, or the Native Inspect debugger for a TNS/E
target), produces executable program file.
Compiles, does not link, produces object file.test1.oc89 -c test1.c
Compiles, links, produces executable program file.testoutc89 -o testout test1.c
Compiles test2.c, links it with test1.o, produces
executable program file.
testoutc89 -o testout test1.o test2.c
Optimizes an executable program file.testoutc89 -O testout
Beginning with H06.24 and J06.13 RVUs: Compiles
with the LP64 data model, links, produces 64-bit OSS
executable program file.
a.outc89 -Wlp64 cmain64.c
46 Overview of the OSS Programming Environment