This commit is contained in:
Claudio Maggioni 2023-09-22 20:47:36 +02:00
parent fc776ca9e6
commit d5e9edec71
7 changed files with 29 additions and 5 deletions

View File

@ -27,8 +27,8 @@ Please complete this checklist (turn [ ] into [X]) before you submit:
- [x] I completed c/compile.sh
- [x] I completed c/run.sh
- [x] I completed c/disassemble.sh
- [ ] I wrote the source code myself and did not look at the source code of my classmates
- [ ] I ran test/test.sh and verified that it produces the expected output
- [ ] I verified that the disassembled instructions appear (not just the function names)
- [ ] I committed my changes (at least one commit, but possibly many)
- [ ] I pushed my commits to GitHub
- [x] I wrote the source code myself and did not look at the source code of my classmates
- [x] I ran test/test.sh and verified that it produces the expected output
- [x] I verified that the disassembled instructions appear (not just the function names)
- [x] I committed my changes (at least one commit, but possibly many)
- [x] I pushed my commits to GitHub

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
gcc -o main ./main.c

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
otool -xv ./main

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
./main

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
javac ./Main.java

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
javap -c ./Main.class

View File

@ -1,3 +1,7 @@
#!/bin/sh
set -eou pipefail
cd "$(dirname "$0")"
java -cp . Main