![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Disassembler The Apex disassembler is an object module disassembler that interleaves source lines and assembler instructions. Unlike disassembling from within the debugger, it needs no target hardware to operate. The result is stored in files with the extension .asm.
InvocationInvoke the disassembler either from the Apex GUI or from the command line.
GUI Invocation
To invoke the Disassembler, use the Compile > Show > Disassemble command. Check the Visit the disassembly files(s) box to display a window containing the disassembled code.
The disassembler will create a file with the .asm extension containing the disassembled code. This file can be referred to later or simply deleted.
Command-Line Invocation
Syntax
disassemble [options
]files
|directories
|views
|configurations
...Alias
dasDescription
This command disassembles the object code created for the named source code file. Typically, a body (for example filename.2.ada) is specified. However, specs can generate elaboration code.
Parameters:
- files | directories | views | configurations
The objects to disassemble. If an object file is specified then that object file is disassembled. If a source file is specified then the object file associated with the source file is disassembled. If a directory or view is specified then object files associated with all source files are disassembled.
- options:
Display the disassembled code in a window.
-disassemble_options disassemble-options
- disassemble-options:
Options that will be passed to the disassembler whenever a object file is disassembled.
Output the entire source file with the assembly listing.
Add hexadecimal display of instruction bytes to disassembly listing.
Print the data section if present. Follow -d with arguments that indicate the output format, one from each of the following two groups:
B or b in bytes
W or w in words
L or l in longwords
x hexadecimal output
d decimal output
With no arguments the -d option defaults to -dWx. There is no space between the -d and the qualifying letters.
Specify the endian value for targets that support both big and little endian. value is B for big endian and L for little endian. Default: [B]
Specify an alternative format for output. Use of the -f option takes the tabs out of the disassembly output. The default has the disassembly tabbed in so that it is easily distinguishable from the source lines.
Display all the options supported by the disassembler.
Print the number of machine code instructions generated for each line of source code. -i can be followed by arguments that indicate the output format:
d Do not print the disassembly, just print the instruction count.
n Order the output by source line number. The default orders the output by instruction count.
Read the mon.list file and insert source line execution percentages in listings.
(Apex embedded only) Disassemble the entire text section and place header information before each unit. If available, source code is interspersed in each unit. Note that for embedded systems, vox_filename must be an executable file, i.e., a file ready to be downloaded and run on the target.
Use of the -X option is incompatible with the other disassemble options.
Rational Software Corporation http://www.rational.com support@rational.com techpubs@rational.com Copyright © 1993-2002, Rational Software Corporation. All rights reserved. |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |