From 6d7f00f7a662845905c3d8cc99351c328d02e802 Mon Sep 17 00:00:00 2001 From: Peter Fors Date: Wed, 9 Apr 2025 13:02:18 +0200 Subject: Last few optimizations to ppu_render_pixel, down to 1.59ns per pixel --- build.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'build.sh') diff --git a/build.sh b/build.sh index b8f6a4e..fbe27e9 100755 --- a/build.sh +++ b/build.sh @@ -8,7 +8,7 @@ CFLAGS="-std=gnu11 " CFLAGS+="-mbmi2 " CFLAGS+="-mfunction-return=keep " CFLAGS+="-mindirect-branch=keep " -CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fwhole-program " +CFLAGS+="-fwrapv -ffast-math -fno-trapping-math -fwhole-program -fvisibility=hidden " CFLAGS+="-fno-stack-protector -fno-PIE -no-pie -fno-strict-aliasing -ffunction-sections -fdata-sections " # CFLAGS+="-fno-exceptions -fno-rtti -fno-use-cxa-atexit " CFLAGS+="-fno-non-call-exceptions -fno-unwind-tables -fno-asynchronous-unwind-tables " @@ -16,7 +16,7 @@ CFLAGS+="-Wall -Wextra " CFLAGS+="-Wno-unused-parameter -Wno-sign-compare -Wno-trigraphs -Wno-maybe-uninitialized " CFLAGS+="-Wno-unused-variable -Wno-unused-const-variable -Wno-unused-function -Wno-write-strings -Wno-missing-field-initializers " -LDFLAGS="-Wl,--gc-sections " +LDFLAGS="-Wl,--gc-sections -Wl,--as-needed " # Base include paths (common for all platforms) INCLUDE_PATHS="-Ibase -I.." -- cgit v1.2.3