URL
https://opencores.org/ocsvn/mlite/mlite/trunk
Subversion Repositories mlite
Compare Revisions
- This comparison shows the changes necessary to convert path
/
- from Rev 190 to Rev 191
- ↔ Reverse comparison
Rev 190 → Rev 191
/trunk/kernel/makefile
13,11 → 13,13
$(GCC_MIPS) uart.c |
$(GCC_MIPS) rtos_test.c |
$(GCC_MIPS) math.c |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \ |
boot.o rtos.o libc.o uart.o rtos_test.o math.o |
$(GCC_MIPS) debugger.c |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \ |
boot.o rtos.o libc.o uart.o rtos_test.o math.o |
..\tools\convert_bin |
@sort <test.map >test2.map |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
@$(DUMP_MIPS) --disassemble test.axf > test.lst |
cp test.bin ..\tools |
|
clean: |
-del *.o *.obj *.exe *.map *.lst *.hex *.txt |
/trunk/tools/convert.c
1,7 → 1,7
//convert.c by Steve Rhoads 4/26/01 |
//Now uses the ELF format (get gccmips_elf.zip) |
//set $gp and zero .sbss and .bss |
//Reads test.exe and creates code.txt |
//Reads test.axf and creates code.txt |
#include <stdio.h> |
#include <stdlib.h> |
#include <string.h> |
100,11 → 100,11
(void)argc; |
(void)argv; |
|
printf("test.exe -> code.txt & test.bin\n"); |
infile = fopen("test.exe", "rb"); |
printf("test.axf -> code.txt & test.bin\n"); |
infile = fopen("test.axf", "rb"); |
if(infile == NULL) |
{ |
printf("Can't open test.exe"); |
printf("Can't open test.axf"); |
return 0; |
} |
buf = (unsigned char *)malloc(BUF_SIZE); |
/trunk/tools/makefile
1,7 → 1,7
# The MIPS gcc compiler must use the cygwin1.dll that came with the compiler. |
# The CC_X86 is for compiling tools on your PC. |
# The GCC_MIPS is for compiling code on the target. |
# Convert_bin changes test.exe into code.txt which is used by the VHDL. |
# Convert_bin changes test.axf into code.txt which is used by the VHDL. |
|
# Customize for Linux |
#CC_X86 = gcc -Wall -O -g |
50,15 → 50,15
|
opcodes: |
$(AS_MIPS) -o opcodes.o opcodes.asm |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe opcodes.o |
-@$(DUMP_MIPS) --disassemble test.exe > test.lst |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf opcodes.o |
-@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
opcodes2: |
$(AS_MIPS) -o opcodes.o opcodes.asm |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe opcodes.o |
-@$(DUMP_MIPS) --disassemble test.exe > test.lst |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf opcodes.o |
-@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
66,9 → 66,9
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) test.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
boot.o test.o no_os.o |
-@$(DUMP_MIPS) --disassemble test.exe > test.lst |
-@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
76,9 → 76,9
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) count.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
boot.o count.o no_os.o |
-$(DUMP_MIPS) --disassemble test.exe > test.lst |
-$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
86,9 → 86,9
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) count.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \ |
boot.o count.o no_os.o |
-$(DUMP_MIPS) --disassemble test.exe > test.lst |
-$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
95,9 → 95,9
pi: |
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) pi.c |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
boot.o pi.o |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
104,9 → 104,9
pi2: |
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) pi.c |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0x10000000 -eentry -Map test.map -s -N -o test.axf \ |
boot.o pi.o |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
114,9 → 114,9
$(AS_MIPS) -o boot.o boot.asm |
$(GCC_MIPS) bootldr.c |
$(GCC_MIPS) no_os.c |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
boot.o bootldr.o no_os.o |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_bin.exe |
$(CP) code.txt $(VHDL_DIR) |
|
124,9 → 124,9
$(AS_MIPS) -EL -o boot.o boot.asm |
$(GCC_MIPS) -EL bootldr.c |
$(GCC_MIPS) -EL no_os.c |
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.exe \ |
$(LD_MIPS) -EL -Ttext 0 -eentry -Map test.map -s -N -o test.axf \ |
boot.o bootldr.o no_os.o |
@$(DUMP_MIPS) --disassemble test.exe > test.lst |
@$(DUMP_MIPS) --disassemble test.axf > test.lst |
convert_le.exe |
$(CP) code.txt $(VHDL_DIR) |
|