mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-14 22:38:46 +00:00
HW8 (4)
This commit is contained in:
11
compile.sh
Executable file
11
compile.sh
Executable file
@@ -0,0 +1,11 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 사용법 확인
|
||||
if [ "$#" -ne 1 ]; then
|
||||
echo "Usage: $0 <path-to-c-file>"
|
||||
echo "Example: $0 examples/c/unary.c"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
cargo run --features=build-bin -- "$1" --optimize --iroutput > "hello.ir"
|
||||
cargo run --features=build-bin -- "$1" --optimize > "hello.S"
|
||||
Reference in New Issue
Block a user