HP C/iX Reference Manual (31506-90011)

186 Chapter11
The Listing Facility
Listing Options
Listing Options
Two compiler options are provided to write additional information to the listing. The
-Wc,-m (abbreviated +m) option is used to generate identifier maps. The -Wc,-o
(abbreviated +o) option is used to generate code offsets.
Identifier Maps
When the +m option is specified, the compiler produces a series of identifier maps, grouped
by function. The map shows the declared identifiers, storage class, type, and address or
constant value.
The first column of the map lists, in alphabetical order, the initial 20 characters of all the
identifiers declared in the function. Member names of structures and unions appear
indented under the structure or union name.
The second column displays the storage class of each identifier. The compiler distinguishes
the following storage classes:
auto external definition static
constant member typedef
external register
The third column shows the type of the identifier. The types include:
array int union
char long int unsigned char
double long double unsigned int
enum short int unsigned long
float signed char unsigned short
function struct void
The type qualifiers, const and vol (for volatile), can also appear in the third column.
The fourth column indicates the relative register location of an identifier. Members of a
union type are in the form W @ B, where W is the byte offset and B is the bit offset within
the word. Both offsets are given in hexadecimal notation. Example
main(void)
{
enum colors {red, green, blue} this_color;
struct SS {
char *name;
char sex;
int birthdate;
int ssn;
float gpa;
struct SS *previous;
} pupil_rec;
union UU {
int flag;
float average;
} datum;