《Unix/Linux系统编程》
2.3.1测试
20191318王泽文
编辑并运行2.3.1中的代码,要求在不修改t2.c 和 t1.c中main函数中的代码的情况下,程序运行结果是你的后四位学号。
t1.c
t2.c
运行结果
objdump命令
objdump命令是用查看目标文件或者可执行的目标文件的构成的gcc工具。
参考链接:
我推荐第一和第二个链接,比较易懂,可操作性好。
https://man.linuxde.net/objdump
https://blog.csdn.net/wwchao2012/article/details/79980514
https://linux265.com/course/linux-command-objdump.html
https://www.jianshu.com/p/a9a1d07302dc
https://blog.csdn.net/q2519008/article/details/82349869
objdump -S a.out 反汇编源代码
查看文件头信息
代码段:
数据段: