RVBTCC/boot-native.sh

10 lines
505 B
Bash
Raw Normal View History

2024-11-18 09:29:59 +00:00
mkdir -p build && cd build &&
2024-12-06 07:06:55 +00:00
gcc ../boot.c -o gcc.out &&
./gcc.out < ../boot.c > boot1.s &&
gcc -static boot1.s -o boot1.out &&
./boot1.out < ../boot.c > boot2.s &&
gcc -static boot2.s -o boot2.out &&
./boot2.out < ../boot.c > boot3.s &&
2024-11-18 09:29:59 +00:00
cmp --silent boot1.s boot2.s && echo "boot1.s == boot2.s" || echo "boot1.s != boot2.s"
cmp --silent boot2.s boot3.s && echo "boot2.s == boot3.s" || echo "boot2.s != boot3.s"
2024-12-06 07:06:55 +00:00
cmp --silent boot1.s boot3.s && echo "boot1.s == boot3.s" || echo "boot1.s != boot3.s"