From cbdca328495a772716f14b1e95a7ab7d6450cc27 Mon Sep 17 00:00:00 2001 From: Elis Eriksson Date: Fri, 19 Jun 2026 21:39:16 +0200 Subject: Improve the shit No longer turing complete No longer depends on libc (good thing) Codegen is now unreadable (because i want it to be) Remove a couple of unnecessary includes Output C code to out.c when compiling Why the fuck are you reading this? --- bfc.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'bfc.sh') 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 - -- cgit v1.3-7-ge9ab