当前位置:网站首页>How to generate assembly file
How to generate assembly file
2022-04-23 08:22:00 【zhonguncle】
Sometimes for learning or debugging , Need to see the assembly code of the program . It's in a lot of GUI Of IDE It is easy to implement in , For example, in Xcode in , Click on “Product”-“Perform Action”-“Assemble file name ” Can , as follows :
So in the terminal ?
First write a C The source code file test.c. The contents are as follows :
#include <stdio.h>
int main() {
printf("hello world!\n");
return 0;
}
Then use the following command :
$ cc -S test.c
At this time, a system named test.s The file of , It's assembly language , as follows :
I hope I can help people in need ~
版权声明
本文为[zhonguncle]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230704441805.html
边栏推荐
猜你喜欢
Vowel substring in statistical string of leetcode simple problem
Campus transfer second-hand market source code download
[appium] encountered the problem of switching the H5 page embedded in the mobile phone during the test
Qt利用QtXlsx操作excel文件
跨域配置报错: When allowCredentials is true, allowedOrigins cannot contain the special value “*“
Ansible Automation Operation and Maintenance details (ⅰ) Installation and Deployment, Parameter use, list Management, Profile Parameters and user level ansible operating environment Construction
LeetCode简单题之计算字符串的数字和
An article understands variable lifting
如何保护开源项目免遭供应链攻击-安全设计(1)
clang 如何产生汇编文件
随机推荐
Online yaml to XML tool
JS中复制数组
情境领导者-第七章、解决绩效问题
监控智能回放是什么,如何使用智能回放查询录像
总线结构概述
LeetCode中等题之旋转函数
jsp页面编码
An example of network communication based on TCP / IP protocol -- file transmission
Compiler des questions de principe - avec des réponses
Description of the abnormity that the key frame is getting closer and closer in the operation of orb slam
CSV column extract column extraction
pdf加水印
项目上传部分
Talk about the basic but not simple stock data
dmp引擎工作总结(2021,光剑)
为什么会存在1px问题?怎么解决?
The simple problem of leetcode is to calculate the numerical sum of strings
单点登录 SSO
編譯原理題-帶答案
JS converts tree structure data into one-dimensional array data