Open System Services Porting Guide (G06.24+, H06.03+)

Table Of Contents
Migrating Guardian Applications to the OSS
Environment
Open System Services Porting Guide520573-006
8-9
Equivalent OSS Commands for Compiling Guardian
Programs
Table 8-2. Common Guardian Compiler Tasks and How Similar Tasks Are
Achieved in the OSS Environment (page 1 of 2)
Guardian TNS Environment
Action Equivalent OSS Action
OSS Native c89 Flags to
Use
Run Accelerator (G-series) or
Object Code Accelerator (H-
series) program
Optimize a program file -O
Run C compiler without
specifying a RUNNABLE
pragma
Compile, but do not link,
specified source files
-c
Display detailed information
from the C compiler, Binder,
and Accelerator (G-series) or
Object Code Accelerator (H-
series)
Display minimal information
by default
(none)
Specify arguments on
Accelerator (G-series) or
Object Code Accelerator (H-
series) command line
Specify an optimization level -Woptimize=N
Specify arguments in a
Binder command file
Pass an argument string to
the linker
-Wnld=args (TNS/R non-
PIC object file)
-Wld=args (TNS/R PIC
object file)
-Weld=args (TNS/E object
file)
Specify a pragma on the C
compiler command line
Pass an argument string to
the C compiler
-Wansistreams
Run the SQL/MP compiler Invoke the SQL/MP compiler
by running the c89 utility
with the -Wsqlcomp flag
-Wsqlcomp=args
Run the SQL/MX compiler Invoke the SQL/MX compiler
by running the c89 utility
with the -Wmxcmp flag
-Wmxcmp=args
Compile Guardian module by
default
Specify that the module is to
be compiled as a Guardian
module
-Wsystype=guardian
Select static binding (default) Select static linking (default
is dynamic)
-WBstatic
Produce specified executable
file
Specify output file by name -o outfile
Use C compiler command
line to define option
Define preprocessor symbol -D symbolname
[=value]