摘要:
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 阅读全文