binary-size

Analyze and reduce ExecuTorch binary size with CMake builds and size metrics.

Updated Mar 25, 2026
One-click install
npx skills add https://github.com/huahai2022/execu-xnnpack --skill binary-size
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: binary-size
Source: https://github.com/huahai2022/execu-xnnpack/tree/main/.claude/skills/binary-size
Command: npx skills add https://github.com/huahai2022/execu-xnnpack --skill binary-size

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Analyze and reduce ExecuTorch binary size to enable faster deployment on memory-constrained devices and lower storage usage.

Core Features & Use Cases

  • Identify large sections in binaries (e.g., .text, .rodata) that contribute to size, enabling targeted optimizations.
  • Provide step-by-step workflow with baseline measurement, stripping, and comparison across builds using tools like nm, strings, and bloaty for reproducible results.
  • Use case: Deploy to microcontrollers and edge devices with limited RAM and flash where binary footprint matters.

Quick Start

Run the size analysis workflow in the repository's build environment to baseline and iteratively reduce the binary footprint.

Frequently Asked Questions about binary-size

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I reduce ExecuTorch binary size for microcontrollers?

You can reduce ExecuTorch binary size by building size benchmarks, applying size optimization flags in CMake builds, and stripping artifacts. This workflow identifies large sections like .text and .rodata to enable targeted footprint reductions for memory-constrained edge devices.

What is the best way to measure binary size optimization in a C++ build system?

Measuring binary size optimization involves establishing a baseline build, stripping binaries, and comparing outputs using tools like nm, strings, and bloaty. This provides reproducible size metrics to evaluate the impact of size optimization flags.

How do I identify large sections contributing to C++ on-device binary footprint?

To identify large sections contributing to C++ on-device binary footprint, you analyze compiled binaries using tools like nm, strings, and bloaty. This pinpoints oversized sections such as .text and .rodata for targeted size optimization.

Can I use stripping and build comparisons in a CI pipeline for size optimization?

Yes, you can use stripping and build comparisons in a CI pipeline for size optimization. The workflow supports comparing baseline versus optimized builds to generate reproducible size measurements, making it suitable for automated CI pipelines.

When do I need to strip artifacts and compare builds for embedded deployments?

You need to strip artifacts and compare builds for embedded deployments when targeting microcontrollers and edge devices with limited RAM and flash. Stripping binaries and measuring size metrics ensures the final footprint fits strict storage constraints.