◉ Pulse
Wren6991 avatar
#19 today

Wren6991/CodeSizer

Python Other

Why is that binary so big?

Created Jul 18, 2026
Stars
12
Today
+12
Forks
0
Quality
85/100
Momentum
18

README

Fetched from GitHub on Oct 30, 2026, 9:23 PM UTC · README.md

View original on GitHub

Third-party content — Open Source Pulse is not the owner of this repository.

This README belongs to Wren6991/CodeSizer and its contributors. We fetch it directly from the project’s public GitHub repository and display it for reference only. All text, code, images and trademarks remain the property of their respective authors. See the repository for its license terms. Copyright / takedown policy.

CodeSizer

Why is that binary so big?

What

CodeSizer is a static code size profiling tool.

In size-focused embedded firmware development, the final binary is heavily inlined and link-time-optimised. A single function symbol may cover dozens of inlinees. CodeSizer uses objdump and addr2line to unwind the inline call stack at every instruction address, so code size can be attributed to the correct node in the inline call tree within each function.

The output is a static HTML report file, with a small amount of JavaScript for UI features like toggling expand/collapse of the tree view.

How

From the interactive help:

usage: codesizer.py [-h] [--cross-prefix CROSS_PREFIX] [--section SECTION]
                    elf output

Analyse static code size of an ELF file. Disassemble via objdump, unwind inline
call stacks via addr2line, and emit a static HTML report.

positional arguments:
  elf                   input ELF file
  output                output HTML file

options:
  -h, --help            show this help message and exit
  --cross-prefix CROSS_PREFIX
                        prefix for objdump and addr2line (default: riscv32-unknown-
                        elf-)
  --section, -j SECTION
                        Specify ELF section. Pass multiple times for multiple
                        sections. If unspecified, .text is used.

The correct toolchain must be present on your $PATH with the given prefix, or you must specify a full file path to the toolchain binaries. For example:

  • If you've installed the gcc-arm-none-eabi package on Ubuntu, then use --cross-prefix=arm-none-eabi-.

  • If you've installed a riscv-gnu-toolchain build at /opt/riscv/gcc15, then use --cross-prefix=/opt/riscv/gcc15/bin/riscv32-unknown-elf-.

Example Output

This HTML report was generated by the following command:

./codesizer.py --cross-prefix arm-none-eabi- arm-bootrom.elf arm-bootrom.html -j .text -j .secure_gateways

The ELF file comes from the RP2350 A4 bootrom release.

Rendered by GitHub from the repository’s README. Scroll to read the full file.
First trending

Jul 19, 2026

first spotted on the list

Best rank

#19

highest position reached

Appearances

1

times on the trending list

Quality score

85

out of 100

Momentum

18

trend strength indicator

Star velocity

0.12

stars per day since creation

Activity — last 60 days

daily counts, collected every 6 hours
  • Stars
  • Forks
  • Merged PRs
  • Issues
  • Closed issues

Collecting activity data since launch — check back in a few days.

Star history

total stars per snapshot

Not enough snapshots yet — check back soon.

Rank history

position on trending · lower is better

Not enough snapshots yet — check back soon.

3D card for your website

Live HTML card with a glass surface and pointer tilt. Paste the iframe on any website.

<iframe src="https://www.notionpulse.cc/embed/Wren6991/CodeSizer" width="420" height="240" style="border:0;max-width:100%;background:transparent" loading="lazy" title="Wren6991/CodeSizer — trending on Open Source Pulse"></iframe>

Stars badge

Show current stars in your README or profile. Auto-updates every 6 hours.

Wren6991/CodeSizer stars badge
Markdown
[![Wren6991/CodeSizer](https://www.notionpulse.cc/api/badge/Wren6991/CodeSizer.svg)](https://www.notionpulse.cc/repo/Wren6991/CodeSizer)
HTML
<a href="https://www.notionpulse.cc/repo/Wren6991/CodeSizer"><img src="https://www.notionpulse.cc/api/badge/Wren6991/CodeSizer.svg" alt="Wren6991/CodeSizer stars badge" /></a>

Repository of the Day

#19 Repository of the Day

Repository of the Week

#19 Repository of the Week

Repository of the Month

#19 Repository of the Month