搜索
bottom↓
回复: 3

求教:IAR ARM如何生成反汇编文件

[复制链接]

出0入25汤圆

发表于 2018-4-24 15:52:16 | 显示全部楼层 |阅读模式

在Keil中,可以通过 fromelf -c -S -o xxxx.txt xxx.axf 命令生成程序的反汇编

请问在IAR中如何生成程序的反汇编??

阿莫论坛20周年了!感谢大家的支持与爱护!!

月入3000的是反美的。收入3万是亲美的。收入30万是移民美国的。收入300万是取得绿卡后回国,教唆那些3000来反美的!

出0入0汤圆

发表于 2018-4-25 00:38:11 | 显示全部楼层
"C:\Program Files (x86)\IAR Systems\....\arm\bin\ielfdumparm.exe"

ielfdumparm

   IAR ELF Dumper V8.22.1.15669 for ARM
   Copyright 2007-2018 IAR Systems AB.

Usage:          IElfDump input_file [output_file]

Available command line options:
--all           Dump all sections
--arm           Disassemble in Arm mode if mode cannot be deduced by the image.
--code          Dump only code sections
--disasm_data   Use disassembly format for data sections
--no_bom        Don't use a Byte Order Mark in Unicode output
--no_header     Do not produce a list header
--no_rel_sections
                Do not output associated .rel sections
--no_strtab     Do not include strtab sections
--no_utf8_in    Non-IAR input files are by default assumed to use UTF-8
                encoding unless this option is used.
--output file
-o file         Name of text file to create
--range A-B     Disassemble only addresses in the specified range
                (from A to B).
--raw           Use raw text format
--section #|name[,...]
-s #|name[,...] Dump only section(s) with given numbers/names
--source        Include source in disassembled code in executables
--text_out encoding
                Encoding to use for text output files
                   utf8                UTF-8
                   utf16le             Little-endian UTF-16
                   utf16be             Big-endian UTF-16
                   locale              Locale specific encoding
--thumb         Disassemble in thumb mode if mode cannot be deduced by the image.
--use_full_std_template_names
                Don't use short names for standard C++ templates
--utf8_text_in  Non-source text input files with no BOM use UTF-8 encoding
--version       Output version information and exit
-a              All sections, except strtab sections
-f file         Read command line options from file


ielfdumparm in.out out.s --code

出0入25汤圆

 楼主| 发表于 2018-4-25 09:17:17 | 显示全部楼层
shangdawei 发表于 2018-4-25 00:38
"C:\Program Files (x86)\IAR Systems\....\arm\bin\ielfdumparm.exe"

ielfdumparm


多谢指点,,非常感谢!!

出0入25汤圆

 楼主| 发表于 2018-4-26 09:57:25 | 显示全部楼层

找到了设置对话框,,记录下:


设置后,会针对每一个.c文件生成一个对应的.s文件


源代码与生成的对应汇编代码如下:

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有帐号?注册

x
回帖提示: 反政府言论将被立即封锁ID 在按“提交”前,请自问一下:我这样表达会给举报吗,会给自己惹麻烦吗? 另外:尽量不要使用Mark、顶等没有意义的回复。不得大量使用大字体和彩色字。【本论坛不允许直接上传手机拍摄图片,浪费大家下载带宽和论坛服务器空间,请压缩后(图片小于1兆)才上传。压缩方法可以在微信里面发给自己(不要勾选“原图),然后下载,就能得到压缩后的图片】。另外,手机版只能上传图片,要上传附件需要切换到电脑版(不需要使用电脑,手机上切换到电脑版就行,页面底部)。
您需要登录后才可以回帖 登录 | 注册

本版积分规则

手机版|Archiver|amobbs.com 阿莫电子技术论坛 ( 粤ICP备2022115958号, 版权所有:东莞阿莫电子贸易商行 创办于2004年 (公安交互式论坛备案:44190002001997 ) )

GMT+8, 2024-4-26 14:19

© Since 2004 www.amobbs.com, 原www.ourdev.cn, 原www.ouravr.com

快速回复 返回顶部 返回列表