Nm-tool

nm
Original author(s)Dennis Ritchie,
Ken Thompson
(AT&T Bell Laboratories)
Developer(s)Various open-source and commercial developers
Initial releaseNovember 3, 1971; 49 years ago
Operating systemUnix, Unix-like, Plan 9
PlatformCross-platform
TypeCommand
  1. Jun 18, 2015 For now, on version 15.04, you can download and extract nm-tool from the old package manually. Run the following commands. First, create a temp directory to work in: cd mkdir APTGET;cd APTGET Then, download the old version and extract the files.
  2. Diamond G Home Center & Rental View on map. Grants, NM 87020. Phone: (505) 287-8861. Shop our Local Ad. Opens in a new window. Join/manage your account.

The nm command ships with a number of later versions of Unix and similaroperating systems including Plan 9. nm is used to examine binary files (including libraries, compiled object modules, shared-object files, and standalone executables) and to display the contents of those files, or meta information stored in them, specifically the symbol table. The output from nm distinguishes between various symbol types. For example, it differentiates between a function that is supplied by an object module and a function that is required by it. nm is used as an aid for debugging, to help resolve problems arising from name conflicts and C++name mangling, and to validate other parts of the toolchain.

The GNU Project ships an implementation of nm as part of the GNU Binutils package.

nm output sample[edit]

Nm-tool - utility to report NetworkManager state and devices Synopsis nm-tool Description The nm-tool utility provides information about NetworkManager, device, and wireless networks. See Also networkmanager(8), Referenced By networkmanager.conf(5), nm-online(1), nm-system-settings.conf(5), nmcli(1). Dns serversubuntukubuntuterminalshell.

If the previous code is compiled with the gcc C compiler, the output of the nm command is the following:

When the C++ compiler is used, the output differs:

The differences between the outputs also show an example of solving the name mangling problem by using extern 'C' in C++ code.

M-tools johnson controls

See also[edit]

Nm-tool

External links[edit]

The Wikibook Guide to Unix has a page on the topic of: Commands

Nm Toolkit

Nm-tool

Nm-tools

  • nm: write the name list of an object file – Commands & Utilities Reference, The Single UNIX Specification, Issue 7 from The Open Group
  • nm(1) – Plan 9 Programmer's Manual, Volume 1

Linux Nm-tool

Retrieved from 'https://en.wikipedia.org/w/index.php?title=Nm_(Unix)&oldid=995528552'

Comments are closed.