TNS/R Native Application Migration Guide

Open System Services (OSS) API and Utilities
Migration Tasks
TNS/R Native Application Migration Guide—523745-001
10-2
Specifying Compiler Pragmas
Specifying Compiler Pragmas
There are two versions of the OSS c89 utility: one version for the TNS compilation
system and one version for the native compilation system. By default, the native c89
utility is run on D40 and subsequent operating system RVUs.
The TNS c89 utility has two flags that support compiler pragmas, -Wsystype and
-Wverbose. For all other pragmas, you either place pragmas in the source text or
pass pragmas to compilation system components using the -Wccom flag and an
argument string, such as:
-Wccom="runnamed,nomap,inline"
The native c89 utility has flags that support most compiler pragmas because the native
compilers require most pragmas to appear on the command line. The flags also enable
c89 to validate pragmas before invoking compilation system components. For
example, the previously listed TNS c89 -Wccom flag is replaced with the following
flags:
-Wrunnamed -Wnomap -Winline
Flags that support compiler pragmas begin with -W to identify them as HP extensions.
See the native c89 reference page online or in the Open System Services Shell and
Utilities Reference Manual for information on mapping pragmas to native c89 flags.
Specifying Files in the Guardian File System
(/G)
Files in the Guardian file system can be specified using OSS pathname syntax
(/G/volume/subvol/file). D30 versions of the TNS c89 utility do not require files
in the Guardian file system to be identified with a suffix. (The OSS file system requires
files to be identified with a suffix.) D40 versions of the TNS c89 utility and the native
c89 utility require a suffix. Add the correct suffix to files in the Guardian file system.
See the c89(1) reference page online or in the Open System Services Shell and
Utilities Reference Manual for a list of valid file suffixes.
Note. The TNS c89 utility has been moved to the /nonnative/usr/bin directory on D40
and later RVUs. See the C/C++ Programmer’s Guide for information on running the TNS c89
utility.