Open System Services Porting Guide (G06.29+, H06.06+, J06.03+)

For compilation 2 through 7, you can also cross-compile for the opposite environment; that is,
generate a Guardian executable file from the OSS environment and vice versa. For compilation
option 8, you cannot cross-compile for the opposite environment because the H-series and J-series
OSS environments do not support TNS compilation and execution. Table 2 presents the cross-compile
options available with PC compilers and HP compilers generating executable files for the OSS and
Guardian environments. For TNS/R and TNS/E systems, it is the version of the c89 utility and C
run-time code that determine whether the program runs as a TNS or a native process. The c99
utility is for TNS/E native applications only.
Table 2 Cross-Compilation Options for Generating OSS and Guardian Executable Files
Executable File (And
Where It Runs)
Flag to Generate
Guardian Executable
File
Flag to Generate OSS
Executable File
Available on PCCompiler
WorkstationN.A.N.A.YesVendor C
Native D40 and later
(TNS/R target); native
N.A. (Select target of
Guardian)
N.A. (Select target of
OSS)
YesNSDEE or ETK with
cross-compilers
H-series or native
J-series (TNS/E target)
Native D40 and later;
native H-series, native
J-series
-Wsystype=guardianYes, defaultYesNative c89 in OSS,
D40 and later,
H-series, J-series
Native D40 and later;
native G-series
Yes, default-Wsystype=ossN.A.NMC in Guardian,
D40 and later;
G-series, H-series,
J-series
Native D40 and later;
native G-series
Yes, default-Wsystype=ossN.A.NMCPLUS in
Guardian, D40 and
later, G-series,
H-series, J-series
Native H-series, native
J-series
Yes, default-Wsystype=ossN.A.CCOMP in Guardian,
H-series, J-series
Native H-series, native
J-series
Yes, default-Wsystype=ossN.A.CPPCOMP in
Guardian, H-series,
J-series
TNS D40 and later;
TNS G-series
-Wsystype=guardianYes, defaultN.A.TNS c89 in OSS, D40
TNS D30 and later-Wsystype=guardianYes, defaultN.A.c89 in OSS, D30
TNS D30 and later;
TNS G-series
Yes, default-Wsystype=ossN.A.c89 in Guardian,
D30
H-series, J-seriesYes, default-Wsystype=ossYesc89 in Guardian,
H-series, J-series
Native H-series, native
J-series
-Wsystype=guardianYes, defaultYesc99 in Guardian,
H-series, J-series
See “C and C++ Compilation Using the c89 Utility” (page 38) for details on the TNS/R native
and TNS C compilation tools.
You can use the TNS C compilation tools in the following environments:
D30 and later TNS environment (OSS and Guardian)
D40 and later TNS/R native environment (OSS and Guardian)
G-series TNS/R native environment (OSS and Guardian)
34 The Development Environment