done
This commit is contained in:
parent
fc776ca9e6
commit
d5e9edec71
7 changed files with 29 additions and 5 deletions
10
README.md
10
README.md
|
@ -27,8 +27,8 @@ Please complete this checklist (turn [ ] into [X]) before you submit:
|
||||||
- [x] I completed c/compile.sh
|
- [x] I completed c/compile.sh
|
||||||
- [x] I completed c/run.sh
|
- [x] I completed c/run.sh
|
||||||
- [x] I completed c/disassemble.sh
|
- [x] I completed c/disassemble.sh
|
||||||
- [ ] I wrote the source code myself and did not look at the source code of my classmates
|
- [x] 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
|
- [x] 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)
|
- [x] I verified that the disassembled instructions appear (not just the function names)
|
||||||
- [ ] I committed my changes (at least one commit, but possibly many)
|
- [x] I committed my changes (at least one commit, but possibly many)
|
||||||
- [ ] I pushed my commits to GitHub
|
- [x] I pushed my commits to GitHub
|
||||||
|
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
gcc -o main ./main.c
|
gcc -o main ./main.c
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
otool -xv ./main
|
otool -xv ./main
|
4
c/run.sh
4
c/run.sh
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
./main
|
./main
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
javac ./Main.java
|
javac ./Main.java
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
javap -c ./Main.class
|
javap -c ./Main.class
|
|
@ -1,3 +1,7 @@
|
||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
|
|
||||||
|
set -eou pipefail
|
||||||
|
|
||||||
|
cd "$(dirname "$0")"
|
||||||
|
|
||||||
java -cp . Main
|
java -cp . Main
|
Reference in a new issue