gtpc2mjnC/C++ Language Support User's Guide


C Global Tagnames

The purpose of the GNTAGH program is to create C language global tagnames that correspond to assembler global tags. Global tagnames consist of unique 32-bit numbers that describe global attributes. (See Format of Global Tags for more information about global tags.) To create the C tagnames and make them available to your programs:

  1. Assemble an assembler source program, producing an output file that describes all of the assembler tags to be converted to C tags.
  2. Compile the GNTAGH program.
  3. Run the GNTAGH program to produce the c$globz.h header file, which contains the global tagnames.
  4. Verify the keypointability attribute of all tagnames in the c$globz.h header file that are listed as keypointable.
  5. Include the c$globz.h header file in all of your C functions and programs that require access to TPF globals.
  6. Recompile all C programs that refer to TPF globals.

These tasks are discussed in greater detail in the following sections. Creating the c$globz.h header file in tasks 1-3 is automated by the GENGLOBH exec on the VM/CMS system and by GLOBHJCL on the MVS system.