C/C++ Programmer's Guide (G06.27+, H06.08+, J06.03+)

Usage Guidelines............................................................................................................259
XMEM................................................................................................................................259
Usage Guidelines............................................................................................................259
XVAR..................................................................................................................................260
Usage Guidelines............................................................................................................260
14 Compiling, Binding, and Accelerating TNS C Programs.............................261
Selecting a Development Platform...........................................................................................261
Specifying Header Files.........................................................................................................262
Working in the Guardian Environment.....................................................................................263
Compiling a C Module.....................................................................................................263
Binding a C Module........................................................................................................264
Restrictions on Binding Caused by the ENV Pragma.............................................................267
Accelerating C Programs..................................................................................................267
Working in the OSS Environment............................................................................................268
Versions of the c89 Utility.................................................................................................268
Components of the TNS c89 Utility....................................................................................269
Using the TNS c89 Utility..................................................................................................269
Binding an OSS TNS Module............................................................................................270
Examples of Working in the OSS Environment.....................................................................271
15 Compiling, Binding, and Accelerating TNS C++ Programs.........................273
Working in the Guardian Environment.....................................................................................273
C Preprocessor Cprep......................................................................................................274
C++ Translator Cfront.......................................................................................................276
TNS C Compiler Run Command Syntax..............................................................................277
File Formats.....................................................................................................................279
Compiling a Sample C++ Program....................................................................................279
Error Messages in the Guardian Environment.......................................................................280
Binding C++ Programs.....................................................................................................281
Working in the G-Series OSS Environment...............................................................................282
TNS c89 Flags................................................................................................................283
TNS c89 Operands..........................................................................................................283
Input Files.......................................................................................................................284
Binding..........................................................................................................................284
Examples........................................................................................................................284
Error Messages in the OSS Environment..............................................................................285
16 Compiling and Linking TNS/R Native C and C++ Programs.......................286
Selecting a Development Platform...........................................................................................286
Specifying Header Files.........................................................................................................287
Compiling and Linking Floating-Point Programs.........................................................................288
Using Compiler Pragmas IEEE_Float and Tandem_Float........................................................288
Using Link Options to Specify Floating-Point Format..............................................................289
Working in the Guardian Environment.....................................................................................291
Compiling a Module........................................................................................................292
Linking a TNS/R Module..................................................................................................294
17 Compiling and Linking TNS/E Native C and C++ Programs.......................299
Selecting a Development Platform...........................................................................................299
Specifying Header Files.........................................................................................................300
Compiling and Linking Floating-Point Programs.........................................................................301
Using Compiler Pragmas IEEE_Float and Tandem_Float........................................................302
Using Link Options to Specify Floating-Point Format..............................................................302
Working in the Guardian Environment.....................................................................................304
Compiling a Module........................................................................................................305
Linking a TNS/E Module..................................................................................................307
Contents 11