文章分类 - 汇编
摘要:在汇编语言中调用C语言函数 通过从右向左的方向,把参数入栈,然后调用C语言函数 .section .data firststring: .ascii "hello, %s is a %s who loves the number %d\n\0" name: .ascii "Jonathan\0" p
阅读全文
摘要:以 "hello world" 程序为例,来分析一下汇编代码的结构 .section .data #数据段声明 msg: .ascii "hello world!\n" #要输出的字符串 len = . - msg #字符串长度 .section .text #代码段声明 # .global mai
阅读全文
摘要:参考书籍和博客 《深入理解程序设计--使用linux汇编语言》 linux平台学x86汇编 编译环境 因为是x86的汇编,直接使用x64的系统编译会有问题,我这里使用docker来作为编译环境 使用alpine x86版本的镜像,Dockerfile文件内容如下: FROM m0elnx/alpin
阅读全文
摘要:linux平台学x86汇编:https://blog.csdn.net/gentleliu/category_3187075.html
阅读全文