汇编程序代码 [英] Assembly Code of a program

查看:78
本文介绍了汇编程序代码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在C中找到程序的汇编代码???


哪些软件可以帮助我找到程序的汇编?



请帮助我...并且为你的回复而烦恼..

解决方案

在大多数情况下,你可以问你的编译器通过应用相关的选项开关(当然是编译器相关的)来产生汇编代码的列表。查看编译器的文档以找到正确的选项。



如果您使用的是Visual Studio,此选项位于输出文件部分,可以轻松地为单个文件或整个项目打开。


通常编译器提供用于生成组合代码的开关。例如 gcc 提供 -S 选项(参见 where [ ^ ])而 VC 提供 / FA 切换 [ ^ ]。


请关注问题< a href =http://stackoverflow.com/questions/840321/how-can-i-see-the-assembly-code-for-ac-program>如何查看C ++程序的汇编代码? [ ^ ]。

它会给你很多答案,看看汇编代码。



看一下文章显示C程序的汇编代码 [ ^ ]了解更多。



谢谢...

How to find the assembly code of a program in C??

Which software will help me to find the assembly of a program?

please help me...and thnks for ur response..

解决方案

In most cases, you can ask your compiler to produce a listing of the assembler code by applying the pertaining option switch (which is of course compiler-dependent). Take a look at the documentation of your compiler to find the right option.

If you are working with Visual Studio, this option sits in the "Output Files" section and can easily be switched on for a single file or the entire project.


Usually the compiler provides a switch for generating assemby code. For instance gcc provides the -S option (see here[^]) while VC provides the /FA switch[^].


Please follow the question How can I see the Assembly code for a C++ Program?[^].
It will give you many answers to see the assembly code.

Take a look at the article Display Assembly Code of C Program[^] to know more.

Thanks...


这篇关于汇编程序代码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆