diff options
Diffstat (limited to 'scripts/analyze_win_bloat.sh')
| -rwxr-xr-x | scripts/analyze_win_bloat.sh | 18 |
1 files changed, 18 insertions, 0 deletions
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 "------------------------------------------------" |
