- Install gfortran first.
sudo apt update
sudo apt install gfortran
gfortran -v
- Run the script. Build, comparing outputs, and decompiling will be done.
bash test.sh
- Compare with
.log
files and.od
files in./old/
and./new/
.
diff ./old/main.log ./new/main.log
diff ./old/hello.od ./new/hello.od
diff ./old/fotmat.od ./new/fotmat.od
diff ./old/do.od ./new/do.od
diff ./old/if.od ./new/if.od
diff ./old/while.od ./new/while.od