2021-12-11 11:30:03 +01:00
|
|
|
|
|
|
|
ARMV8PFX=/opt/buildroot-armv8el-uclibc/bin/aarch64-buildroot-linux-uclibc
|
2022-01-07 23:05:05 +01:00
|
|
|
MIPS32PFX=/opt/buildroot-mipsel32-o32-uclibc/bin/mipsel-buildroot-linux-uclibc
|
2021-12-11 11:30:03 +01:00
|
|
|
|
|
|
|
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!"
|
2022-01-07 23:05:05 +01:00
|
|
|
gcc -o mipsgen mipsgen.c -ggdb -I../mips/
|
|
|
|
./mipsgen > bytecode.bin
|
|
|
|
$(MIPS32PFX)-as -EL -o bytecoderef.o mipsgen.S
|
|
|
|
$(MIPS32PFX)-objcopy -j .text -O binary bytecoderef.o bytecoderef.bin
|
|
|
|
@ cmp bytecoderef.bin bytecode.bin || echo "Bytecode mismatch"
|
|
|
|
@ cmp bytecoderef.bin bytecode.bin && echo "Test passed!"
|
2021-12-11 11:30:03 +01:00
|
|
|
|
|
|
|
|