This commit is contained in:
static
2025-06-17 04:37:00 +00:00
parent c2b8d71e16
commit 5fa024ceb4
3 changed files with 310 additions and 103 deletions

11
compile.sh Executable file
View 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"