The Single UNIX ® Specification, Version 2
Copyright © 1997 The Open Group

 NAME

dis - disassembler (DEVELOPMENT, LEGACY)

 SYNOPSIS



dis [-oLV][-F function]... [-l string] file...

 DESCRIPTION

The dis utility produces an assembly language listing of each of its file arguments, each of which may be an object file or an archive of object files. The listing includes assembly statements and an octal or hexadecimal representation of the binary that produced those statements.

 OPTIONS

The dis utility supports the XBD specification, Utility Syntax Guidelines  . The following options are supported:

-o
Write numbers in octal. The default is hexadecimal.
-L
Invoke a lookup of C-language source labels in the symbol table for subsequent writing to standard output.
-V
Write the version number of the disassembler to standard error.
-F function
Disassemble only the named function in each object file specified on the command line.
-l string
Disassemble the library file specified as string. For example, the command dis -lm will disassemble the math library.

 OPERANDS

The following operands are supported:
file
A pathname of an object file or an archive (see ar) of object files.

 STDIN

Not used.

 INPUT FILES

The input files are object files or archives of object files, or both.

 ENVIRONMENT VARIABLES

The following environment variables may affect the execution of dis:
LANG
Provide a default value for the internationalisation variables that are unset or null. If LANG is unset or null, the corresponding value from the implementation-dependent default locale will be used. If any of the internationalisation variables contains an invalid setting, the utility will behave as if none of the variables had been defined.
LC_ALL
If set to a non-empty string value, override the values of all the other internationalisation variables.
LC_CTYPE
Determine the locale for the interpretation of sequences of bytes of text data as characters (for example, single- as opposed to multi-byte characters in arguments and input files).
LC_MESSAGES
Determine the locale that should be used to affect the format and contents of diagnostic messages written to standard error.
NLSPATH
Determine the location of message catalogues for the processing of LC_MESSAGES .

 ASYNCHRONOUS EVENTS

Default.

 STDOUT

The standard output consists of an assembly listing of unspecified format.

 STDERR

Used only for diagnostic messages.

 OUTPUT FILES

None.

 EXTENDED DESCRIPTION

None.

 EXIT STATUS

The following exit values are returned:
0
Successful completion.
>0
An error occurred.

 CONSEQUENCES OF ERRORS

Default.

 APPLICATION USAGE

None.

 EXAMPLES

None.

 FUTURE DIRECTIONS

None.

 SEE ALSO

ar, cc, c89.

UNIX ® is a registered Trademark of The Open Group.
Copyright © 1997 The Open Group
[ Main Index | XSH | XCU | XBD | XCURSES | XNS ]