Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merged the eel2-arm port into the official WDL (a8a666b)
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
Showing
7 changed files
with
2,547 additions
and
1,012 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
!asm-nseel-x64-macho.o | ||
_backup.cmd | ||
*.obj | ||
*.o | ||
*.s | ||
*.i | ||
*.ii | ||
!test_inst.s | ||
*.out | ||
*.arm | ||
objdump.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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) |
Oops, something went wrong.