#!/bin/bash # 사용법 확인 if [ "$#" -ne 1 ]; then echo "Usage: $0 " 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"