feat(mir)本地编译SysY静态库

mxr 4 weeks ago
parent bbfb8f2c69
commit 34d483ed47

Binary file not shown.

@ -53,7 +53,7 @@ expected_file="$input_dir/$stem.out"
echo "汇编已生成: $asm_file"
# 静态链接
aarch64-linux-gnu-gcc -no-pie "$asm_file" -L./lib -lsysy -static -o "$exe"
aarch64-linux-gnu-gcc -no-pie "$asm_file" -L./sylib -lsysy -static -o "$exe"
echo "可执行文件已生成: $exe"
if [[ "$run_exec" == true ]]; then

@ -0,0 +1,5 @@
编译libsysy.a
```
aarch64-linux-gnu-gcc -c sylib.c -o sylib.o
aarch64-linux-gnu-ar rcs libsysy.a sylib.o
```
Loading…
Cancel
Save