UPGRADE YOUR BROWSER

We have detected your current browser version is not the latest one. Xilinx.com uses the latest web technologies to bring you the best online experience possible. Please upgrade to a Xilinx.com supported browser:Chrome, Firefox, Internet Explorer 11, Safari. Thank you!

AR# 61489

SDK: How to view the Disassembled code of a Zynq based ELF file?

Description

For MicroBlaze based projects, I can use the "dis" command in the xmd console to view the disassembled code.

However, this method does not seem to work for Z
ynq based applications. 

 
How can I see the disassembled code of a Zynq application in SDK?

Solution

The xmd command "dis" only works for MicroBlaze.

This command is not suitable for Zynq based applications. 
 
dis_mb.png




To view/dump the disassembled code of a Zynq application, Use one of the two methods described below:
 
Option 1.

Use the Disassembly window in SDK to view the disassembled code
 

In SDK, go to Window > Show View > Other and type disassembly

Add the window to your SDK workspace.

add_dis.png


 You should now be able to see the disassembly view.

dis.png


Option 2.

Use the objdump feature to dump the disassembled code to a *.s file
 
Open the XMD console and type following command:
 
arm-xilinx-eabi-objdump -D {C:\Users\sampatd\Downloads\2014.1-release\zc702_workspace\test\Debug\test.elf} > c:/users/sampatd/desktop/test.s 
 
The above command will dump the disassembled code of test.elf to a file named test.s.

You can use a text-editor to view the test.s file:
 
sfile.png



AR# 61489
Date Created 07/14/2014
Last Updated 12/03/2014
Status Active
Type General Article
Devices
  • Zynq-7000
Tools
  • EDK