随笔分类 -  compiler

摘要:用mips编译器出elf文件之后,由readelf objdump等命令 可以分析elf文件bootldr_elf: $(AS_MIPS) -o boot.o boot.asm $(GCC_MIPS) bootldr.c $(GCC_MIPS) no_os.c $(GCC_MIPS) -DDLL_DISABLE ddr_init.c $(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ boot.o bootldr.o no_os.o ddr_init.o @$(DUMP_M... 阅读全文
posted @ 2013-03-15 21:18 mipscpu 阅读(1083) 评论(0) 推荐(0)
摘要:ifeq ($(LANG),)# Customize for Windows# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler.CC_X86 = cl /O1 /nologoCP = copyRM = delDWIN32 = -DWIN32BIN_MIPS = ..\gccmips_elfVHDL_DIR = ..\vhdlLINUX_PWD =GCC_MIPS = $(BIN_MIPS)\gcc $(CFLAGS)AS_MIPS = $(BIN_MIPS)\asLD_MIPS = ... 阅读全文
posted @ 2013-03-15 15:36 mipscpu 阅读(2755) 评论(0) 推荐(0)
摘要:objdump -D -b binary -m mips -EB test.bin>test1.txt和正常编译器件产生的 .lst 文件相同vim查看二进制文件 命令 :%!xxd 阅读全文
posted @ 2013-03-14 19:31 mipscpu 阅读(2399) 评论(0) 推荐(0)