This is based on the MIPS dynarec (more or less) with some ARM borrowings. Seems to be quite fast (under my testing fixed results: faster than ARM on A1 but not a lot faster than the interpreter on Android Snapdragon 845) but still some optimizations are missing at the moment. Seems to pass my testing suite and compatibility wise is very similar to arm.
12 lines
382 B
Makefile
12 lines
382 B
Makefile
|
|
ARMV8PFX=/opt/buildroot-armv8el-uclibc/bin/aarch64-buildroot-linux-uclibc
|
|
|
|
all:
|
|
gcc -o arm64gen arm64gen.c -ggdb -I../arm/
|
|
./arm64gen > bytecode.bin
|
|
$(ARMV8PFX)-as -o bytecoderef.o arm64gen.S
|
|
$(ARMV8PFX)-objcopy -O binary bytecoderef.o bytecoderef.bin
|
|
@ cmp bytecoderef.bin bytecode.bin || echo "Bytecode mismatch"
|
|
@ cmp bytecoderef.bin bytecode.bin && echo "Test passed!"
|
|
|
|
|