gtpa2m14 | Application Programming |
TPF globals are normally accessed using assembler labels, which are not accessible to the C or C++ compiler. Therefore, a set of C global tags, known as tag names, has been created that correspond to the assembler labels. (TPF provides a sample utility, called GNTAGH which uses the ADATA generated by the HLASM assembler as input to show how this process might be automated.) Each global tag name maps to a unique 32-bit value that describes the displacement of the item in its global area, its length, and other attributes. These tag names make up the c$globz.h header file. Header file tpfglbl.h contains TPF-defined global constants and function prototypes.
See Customizing C/C++ Language Support for more information about TPF global tags. See TPF C/C++ Language Support User's Guide for detailed information about the GENTAG program and creating C global tag names.