The map listing is requested with the DATA-ALLOCATION-MAP option of the MODIFY-LISTING-PROPERTIES statement. It provides information on all the symbolic addresses used in the program (names of variables and functions).
******** MAP - LISTING ******** BS2000 C/C++ COMPILER 04.0B02 DATE:2023-04-02 PAGE: 3 SOURCENAME:*BS2000(MAINPROG) TIME=17:37:33 ___________________________________________________________________________________________ name stcl/type size slice offs xoffs enuval stroffs xstroffs a nospec 4 1 104 0x0068 - - - class aptr auto 4 1 24 0x0018 - - - pointer to class b nospec 8 1 108 0x006C - - - class bptr auto 4 1 28 0x001C - - - pointer to class ii extern 4 - - - - - - signed int ii auto 4 1 16 0x0010 - - - signed int jj extern 4 - - - - - - signed int jj auto 4 1 20 0x0014 - - - signed int main nospec 0 1 48 0x0030 - - - entry_var string auto 4 1 8 0x0008 - - - pointer to char x param 4 - - - - - - signed int x param 4 - - - - - - signed int xx auto 4 1 12 0x000C - - - float A nospec 4 - - - - - - class B nospec 8 - - - - - - class ___________________________________________________________________________________________
Explanation
name | Name of the symbolic address. | ||||||||||||||||||||||
stcl | storage class: Storage class of the symbolic address.
| ||||||||||||||||||||||
type | Data type of the symbolic address (in a separate line under the storage class).
| ||||||||||||||||||||||
size | Size of the variable in memory (in bytes). | ||||||||||||||||||||||
slice | A slice is an area (code or data fragment) with a length of 4096 bytes that can be addressed via a base register. The digit specifies in which slice of the data module the variable is located. | ||||||||||||||||||||||
offs | Relative address within a slice (decimal). | ||||||||||||||||||||||
xoffs | Relative address within a slice (hexadecimal). | ||||||||||||||||||||||
enuval | For members of an enumeration type (enum), enuval specifies the value of the member. | ||||||||||||||||||||||
stroffs | Byte position of the symbolic address within a structure (decimal). | ||||||||||||||||||||||
xstroffs | Byte position of the symbolic address within a structure (hexadecimal). |