AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox AT&T UNIX™PC Unix System V Users Manual - tenox

01.01.2013 Views

NL(l) NL(l) -ssep Sep is the character(s) used in separating the line number and the corresponding text line. Default sep is a tab. -wwidth Width is the number of characters to be used for the line number. Default width is 6. -nformat Format is the line numbering format. Recognized � -lnum -dxx values are: In, left justified, leading zeroes suppressed; rn, right justified, leading zeroes suppressed; rz, right justified, leading zeroes kept. Default format is rn (right justified). Num is the number of blank lines to be considered as one. For example, -12 results in only the second adjacent blank being numbered (if the appropriate -ha , -ba, and/or -fa option is set). Default is 1. The delimiter characters specifying the start of a logical page section may be changed from the default characters (\:) to two user specified characters. If only one character is entered, the second character remains the default character (:). No space should appear between the -d and the delimiter characters. To enter a backslash, use two backslashes. EXAMPLE The command: nl -v10 -i10 -d!+ file1 file2 will number files 1 and 2 starting at line number 10 with an increment of ten. The logical page delimiters are !+. SEE ALSO pr(1). - 2-

NM (l) NM (l) NAME nm - print name list of common object file SYNOPSIS nm [-o] [-x] [-h] [-v] [-n] [-e] [-f] [-u] [-V] [-T] file-names DESCRIPTION The nm command displays the symbol table of each common object file file-name. File-name may be a relocatable or absolute common object file; or it may be an archive of relocatable or absolute common object files. For each symbol, the following information will be printed: N arne The name of the symbol. Value Its value expressed as an offset or an address depending on its storage class. Class Its storage class. Type Its type and derived type. If the symbol is an instance of a structure or of a union then the structure or union tag will be given following the type (e.g. struct-tag). If the symbol is an array, then the array dimensions will be given following the type (eg., char[n] [m]). Note that the object file must have been compiled with the -g option of the cc(l) command for this information to appear. Size Its size in bytes, if available. Note that the object file must have been compiled with the -g option of the cc(l) command for this information to appear. Line The source line number at which it is defined, if available. Note that the object file must have been compiled with the -g option of the cc(l) command for this information to appear. Section For storage classes static and external, the object file section containing the symbol (e.g., text, data or bss). The output of nm may be controlled using the following options: -o Print the value and size of a symbol in octal instead of decimal. Print the value and size of a symbol in hexadecimal instead of decimal. -h Do not display the output header data. -v Sort external symbols by value before they are printed. -n Sort external symbols by name before they are printed. -e Print only external and static symbols. -f Produce full output. Print redundant symbols (.text, .data and .bss), normally suppressed. -u Print undefined symbols only. -x - 1 -

NM (l) NM (l)<br />

NAME<br />

nm - print name list of common object file<br />

SYNOPSIS<br />

nm [-o] [-x] [-h] [-v] [-n] [-e] [-f] [-u] [-V]<br />

[-T] file-names<br />

DESCRIPTION<br />

The nm command displays the symbol table of each common<br />

object file file-name. File-name may be a relocatable or absolute<br />

common object file; or it may be an archive of relocatable or absolute<br />

common object files. For each symbol, the following information<br />

will be printed:<br />

N arne The name of the symbol.<br />

Value Its value expressed as an offset or an address depending<br />

on its storage class.<br />

Class Its storage class.<br />

Type Its type and derived type. If the symbol is an instance<br />

of a structure or of a union then the structure or union<br />

tag will be given following the type (e.g. struct-tag). If<br />

the symbol is an array, then the array dimensions will<br />

be given following the type (eg., char[n] [m]). Note that<br />

the object file must have been compiled with the -g<br />

option of the cc(l) command for this information to<br />

appear.<br />

Size Its size in bytes, if available. Note that the object file<br />

must have been compiled with the -g option of the<br />

cc(l) command for this information to appear.<br />

Line The source line number at which it is defined, if available.<br />

Note that the object file must have been compiled<br />

with the -g option of the cc(l) command for this information<br />

to appear.<br />

Section For storage classes static and external, the object file<br />

section containing the symbol (e.g., text, data or bss).<br />

The output of nm may be controlled using the following options:<br />

-o Print the value and size of a symbol in octal instead of<br />

decimal.<br />

Print the value and size of a symbol in hexadecimal<br />

instead of decimal.<br />

-h Do not display the output header data.<br />

-v Sort external symbols by value before they are printed.<br />

-n Sort external symbols by name before they are printed.<br />

-e Print only external and static symbols.<br />

-f Produce full output. Print redundant symbols (.text,<br />

.data and .bss), normally suppressed.<br />

-u Print undefined symbols only.<br />

-x<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!