Accessing data through the toc entry with td storage-mapping class

A scalar data item can be stored into a TOC entry with TD storage-mapping class and retrieved directly from the TOC entry.

A scalar data item can be stored into a TOC entry with TD storage-mapping class and retrieved directly from the TOC entry.

Note: TOC entries with TD storage-mapping class should be used only for frequently used scalars. If the TOC grows too big (either because of many entries or because of large entries) the assembler may report message 1252-171 indicating an out of range displacement.

The following examples show several ways to store and retrieve a scalar data item as a TOC with TD storage-mapping class. Each example includes C source for a main program, assembler source for one module, instructions for linking and assembling, and output from running the program.