Repository navigation
Description
Context
Platform sub-issue of #4737. +32 B RAM versus 3.10.3; flash is already 700 B smaller.
Source measurements, flash / RAM in bytes, fbuild 2.5.37, per-version source/examples and constant per-board build configuration. Reference SHAs: 3.10.3 20667c3a64, 3.10.6 ebf8c2823c, master 0c2e9f7300.
| example | 3.10.3 | 3.10.6 | master reference |
|---|---|---|---|
| Blink | 3338 / 131 | 3132 / 237 | 2638 / 163 |
Execution workflow
Work one checklist item and one platform sub-issue at a time across the entire #4737 project, in the existing repository checkout without git worktrees. Use a feature branch in that checkout and reuse .build/fbuild/attiny85, toolchain/dependency caches and test caches. Run builds sequentially. Verify changed source/flags are reflected in the ELF; use the appropriate wrapper's --clean only when stale-output evidence requires it. Record each completed item's measurements, checks and commit/PR before moving on.
Checklist
- Reproduce this platform's current starting measurements with recorded SHA, flags and framework versions, and verify cache validity.
- Create matched symbol/link-map evidence using
bash bloat attiny85; retain both the published example and controlled RGB-workload measurements where applicable. - Identify the remaining 32 B RAM increase on this 512 B RAM target, including controller settings, vtables, bookkeeping and shared state.
- Reduce default RAM and preserve the existing flash reduction; coordinate applicable AVR changes with AVR: remaining Nano sketch growth vs 3.10.3 (+1.5 KB flash, +137 B RAM) and the RGBW power-estimate opt-in #4735.
- Validate the tiny-memory tier and explicitly requested serial/white-channel/power behavior without forcing unused features into the build.
- Land a measured default RAM reduction below 163 B, preserve flash at or below the 2,638 B reference, and quantify the remaining gap to 3.10.3.
- Add a focused size regression check. For any implementation, capture a failing budget/reproduction before coding (RED) and the passing result afterward (GREEN); run relevant tests, lint and code review.
- Ratchet applicable existing flash budgets and enforce RAM budgets through existing checks, preserving normal feature behavior and avoiding relaxed ceilings.
- Publish final before/after bytes, remaining gaps, source SHA, commands, flags, framework versions and landed commit/PR links; update meta(memory): reduce default flash/RAM usage across all measured platforms #4737's platform scorecard.
Decisions
- Default-build reductions are required; optional slim configurations supplement the work but do not satisfy this child.
- Scope is this platform; shared fixes must be measured on affected siblings and tracked in the parent.
- Any unmet reduction criterion needs an explicit maintainer-approved exception with exact bytes before closure.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
zackees commentedon Oct 7, 2026
Implementation and local evidence are in #4752 (head
0da2467cc2, based9cc468d5c). Child remains open pending landing and fresh verification.Matched default ATtiny85 published Blink and controlled RGB builds: 3.10.3 3338 / 131 B, starting master 2640 / 161 B, candidate 2628 / 161 B (board flash / physical RAM).
CFastLED::showis 582 → 570 B. The previously landed #4751 selector change supplies the 163 → 161 B RAM reduction; this PR preserves it. Remaining historical gap is −710 B flash / +30 B RAM, with the physical RAM ledger and aliased-vtable distinction in the PR.Shared Uno results: Blink 5130 / 443, Apa102 3642 / 324, controlled 3914 / 266; each saves another 8 B flash. STM32, C3 and C6 retain their prior published sizes. Scoped budgets, final 319 native units, sanitizer core tests, all three real tiny-ELF link tests (zero skips), lint and manual code review pass. Separate explicitly enabled correction/dithering/RGBW/RGBWW/power workload links at 7054 / 177; this is build validation, not hardware waveform evidence or default savings.
Work remains sequential in the original checkout without worktrees. Caches are retained; stale ELF risks were resolved with generated-source fingerprints and clean fbuild verification. All board validation was local; CI Full was never invoked. Parent #4737 remains open; cumulative performance update will follow landed verification.
zackees commentedon Oct 7, 2026
Completed through #4752 at
8d8207f3919e596b7ab9c41cd6560d61692ef9edafter local validation and landed verification.Default published Blink and controlled RGB: 2628 B flash / 161 B physical RAM. Fresh matched pre-Uno master: 2640 / 163; child implementation base: 2640 / 161. The 2 B RAM reduction landed in #4751; this PR preserves it and saves another 12 B flash. Final flash is also 10 B below the original frozen 2638-byte reference. No features, controller passes or virtual methods were removed.
3.10.3 is 3338 / 131; remaining gap −710 B flash / +30 B RAM is fully attributed in #4752. Default scoped image-flash/attributed-RAM budget 2628 / 189 passes on the fresh landed build. Candidate and landed source/budget diff is empty. Earlier RED evidence, final native/sanitizer/real-ELF checks, explicit correction/dither/white/power build, logging audit and shared platform measurements are recorded in the PR. All routine PR checks passed; manual code review passed. CodeRabbit was still pending without findings at merge, so no automated-review approval is claimed.
Builds were sequential in this repository, without worktrees; caches retained. No CI Full invoked. Cumulative performance diff posted on #4737; that parent stays open. Artifacts retained in
.build/memory-4737/attiny85/.