Skip to content

Commit

Permalink
merged the eel2-arm port into the official WDL (a8a666b)
Browse files Browse the repository at this point in the history
a lot of refactoring has been done in EEL2 over the last month,
so this port is currently broken. i was able to make it compile at least,
but will have to look into making the necessary changes.

the structuring and naming looks much nicer now, but i haven't tested
any of the new functionality at this point.

this is a new branch and a manual merge, since there were way to
many merge conflicts. :(

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
  • Loading branch information
neolit123 committed May 8, 2012
1 parent a8a666b commit 506a759
Show file tree
Hide file tree
Showing 7 changed files with 2,547 additions and 1,012 deletions.
10 changes: 10 additions & 0 deletions WDL/eel2/.gitignore
@@ -1 +1,11 @@
!asm-nseel-x64-macho.o
_backup.cmd
*.obj
*.o
*.s
*.i
*.ii
!test_inst.s
*.out
*.arm
objdump.txt
58 changes: 58 additions & 0 deletions WDL/eel2/Makefile
@@ -0,0 +1,58 @@
# makefile for eel2-arm

CC = arm-elf-gcc
CXX = $(CC)
RUN = arm-elf-run
DUMP = arm-elf-objdump
OUT = test.arm
BE = -mbig-endian

CFLAGS = -Wall -Wno-missing-field-initializers -Wno-unused \
-Wno-sign-compare -Wno-cast-qual -g -save-temps $(BE)
LFLAGS = -lm $(BE)

vpath %.c %.cpp %.h

HEADERS = ns-eel-addfuncs.h ns-eel-int.h ns-eel.h
OBJS = nseel-caltab.o nseel-cfunc.o nseel-compiler.o nseel-eval.o \
nseel-lextab.o nseel-ram.o nseel-yylex.o test.o

default: $(OUT)

nseel-caltab.o: nseel-caltab.c $(HEADERS)
$(CC) -c nseel-caltab.c $(CFLAGS)

nseel-cfunc.o: nseel-cfunc.c asm-nseel-arm-gcc.c $(HEADERS)
$(CC) -c nseel-cfunc.c $(CFLAGS)

nseel-compiler.o: nseel-compiler.c $(HEADERS)
$(CC) -c nseel-compiler.c $(CFLAGS)

nseel-eval.o: nseel-eval.c $(HEADERS)
$(CC) -c nseel-eval.c $(CFLAGS)

nseel-lextab.o: nseel-lextab.c $(HEADERS)
$(CC) -c nseel-lextab.c $(CFLAGS)

nseel-ram.o: nseel-ram.c $(HEADERS)
$(CC) -c nseel-ram.c $(CFLAGS)

nseel-yylex.o:nseel-yylex.c $(HEADERS)
$(CC) -c nseel-yylex.c $(CFLAGS)

test.o:test.cpp $(HEADERS)
$(CC) -c test.cpp $(CFLAGS)

$(OUT): $(OBJS)
$(CC) -o $(OUT) $(OBJS) $(LFLAGS)
@echo [*] all done

run:
$(RUN) $(OUT)

dump:
$(DUMP) -d $(OUT) > objdump.txt
@echo [*] saved to objdump.txt

clean:
rm -f $(OBJS) $(OUT)

0 comments on commit 506a759

Please sign in to comment.