发布时间:2012-12-31 16:18:55
C代码手写了Makefile,Makefile内容如下 点击(此处)折叠或打开CC = gccCFLAGS = -g -WallBINARY = mainBASEOBJS = $(patsubst ./%.c, %.o, $(wildcard ./*.c)).PHONY: all cleanall: $(BINARY)$(BINARY): $(BASEOBJS) $(CC) $(CFLAGS) -o $@ $(BASEOBJS)clean: rm -f $(BASEOBJS) $(BINARY)%.o:......【阅读全文】
发布时间:2012-12-31 11:29:56
Linux下有哪些系统调用,在哪里可以查到在/usr/include/asm/unistd.h具体内容如代码所示 点击(此处)折叠或打开/* File autogenerated by 'make headers_install' */#ifndef __ASM_STUB_UNISTD_H#define __ASM_STUB_UNISTD_H# if defined __x86_64__# include <asm-x86_64/unistd.h># elif defined __i386__# include <asm-i386/unistd.h># else# ......【阅读全文】
发布时间:2012-12-29 22:20:32
nasm -f elf f.asmld -m elf_i386 -s -o f.out f.o 点击(此处)折叠或打开section.data hello: db 'Hello world!', 10 helloLen: equ 13section .textglobal _start_start: mov eax, 4 mov ebx, 1 mov ecx, hello mov edx, helloLen int 80h mov eax, 1 mov ebx, 0 int 80h......【阅读全文】