From 50d4bd635a5fd8aaf6f19b713c10bbb445301b97 Mon Sep 17 00:00:00 2001 From: skal Date: Sat, 31 Jan 2026 14:02:03 +0100 Subject: Finalize Windows port with size analysis reporting and updated docs --- scripts/analyze_win_bloat.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100755 scripts/analyze_win_bloat.sh (limited to 'scripts/analyze_win_bloat.sh') diff --git a/scripts/analyze_win_bloat.sh b/scripts/analyze_win_bloat.sh new file mode 100755 index 0000000..6710558 --- /dev/null +++ b/scripts/analyze_win_bloat.sh @@ -0,0 +1,18 @@ +#!/bin/bash +set -e + +EXE="build_win/demo64k.exe" + +if [ ! -f "$EXE" ]; then + echo "Error: $EXE not found. Run scripts/build_win.sh first." + exit 1 +fi + +echo "Analyzing $EXE..." +echo "------------------------------------------------" +echo "Sections:" +x86_64-w64-mingw32-objdump -h "$EXE" +echo "------------------------------------------------" +echo "Top 20 Symbols by Size:" +x86_64-w64-mingw32-nm --print-size --size-sort --radix=d "$EXE" | tail -n 20 +echo "------------------------------------------------" -- cgit v1.2.3