aboutsummaryrefslogtreecommitdiff
path: root/bfc.sh
diff options
context:
space:
mode:
Diffstat (limited to 'bfc.sh')
-rwxr-xr-xbfc.sh5
1 files changed, 4 insertions, 1 deletions
diff --git a/bfc.sh b/bfc.sh
index 4bc87c1..49c1370 100755
--- a/bfc.sh
+++ b/bfc.sh
@@ -21,4 +21,7 @@ fi
# compile pipeline
OUT=$(cat "$SRC" | "$BFC")
-echo "$OUT" | gcc -o ./bf.out -x c -
+LDFLAGS="-Os -march=native -mtune=native -flto -fuse-linker-plugin -DNDEBUG -fomit-frame-pointer -nostdlib -nostartfiles -no-pie -fno-stack-protector"
+
+echo "$OUT" > out.c
+echo "$OUT" | gcc $LDFLAGS -o ./bf.out -x c -