Section 5: Utilities
311
TI
-
89 / TI
-
92 Plus Sierra C Assembler Reference Manual
Not for Distribution
Beta Version February 2, 2001
-t
Print the symbol information in a terse format that provides each symbol's
name, address, and type. The type is indicated by a single letter defined
as follows:
a
absolute symbol, global
A
absolute symbol, local
b
bss symbol, local
B
bss symbol, global
C
comm variable
d
data symbol, local
D
data symbol, global
f
file name
r
register variable
s
symbol from user defined section, local
S
symbol from user defined section, global
t
text symbol, local
T
text symbol, global
U
undefined symbol
-T
Do not truncate symbol names and type information to fit in the column
space provided. If a name or type overflows the allotted space, the
columns to the right of the name or type will be shifted over.
-u
Print usage information.
-U
Print only undefined external symbols.
-v
Sort symbols by value in ascending order. The same sorting restrictions
that apply to the
-n
flag also apply to the
-v
flag.
Examples
The following command dumps the symbol table from the object file hello.o:
nm68 hello.o
The output from the above invocation of nm68 is as follows:
Name
Value
Class
Type
Size
Line
Section
hello.c
|
|file
|
|
|
|
_main
|00000064
|extern
| int()
| 82
|
|.text
.bf
|00000068
|func
|
|
| 2
|.text
i
| -4
|auto
| int
|
|
|(ABS)
.ef
|000000b2
|func
|
|
| 10
|.text
_printf
| 0
|extern
|
|
|
|
_scanf
| 0
|extern
|
|
|
|