摘要: C code: #include <stdio.h> extern add(int,int); int main(int argc,char **argv) { int result = add(4,5); printf("result:%d\n",result); } assembly code: ;nasm -f elf add.s -o add.o [section .data] Message db "calcuated result:%d",0xa,0 [section .text] extern printf ;invoke c 阅读全文
posted @ 2011-04-23 10:23 十三 阅读(359) 评论(0) 推荐(0) 编辑