Skip to content

feat(post): at -Os, an options struct links every setter (16 Dec) - #315

Merged
filipsajdak merged 3 commits into
mainfrom
feat/post-options-struct-links-every-setter
Nov 29, 2026
Merged

filipsajdak merged 3 commits into
mainfrom
feat/post-options-struct-links-every-setter

Conversation

@filipsajdak

Copy link
Copy Markdown
Contributor

16 Dec 16:00Z: at -Os, an options struct of optional members links every setter (in lvgl26 one dial.set({.value = v}) cost 34,024 B before; 15,392 B with today's contract settings), and naming the members at compile time links one. At -O2 GCC folds it; the post says so.

lvgl26 before (03496b8) and after (3a23a478) on a Cortex-M4 in QEMU, against the same screen in plain LVGL C:

before after plain C
flash, shipped slice 283,724 247,000 244,472
gap to C +39,252 +2,528
contract checks 22,784 flash, 4,032 RAM 364 flash, 0 RAM
flash per label + arc 188.3 B 68.3 B 57.3 B

Source: RESULTS.md in examples PR #109 (merges first). The lvgl26 disclosure line and status line are in the post.

Commits

  1. chore(schedule) 16 Dec 16:00Z double 2. feat(post) 3. feat(social)

Verification

Merge waits for the owner's go (deadline 15 Dec 20:00Z).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X

filipsajdak and others added 3 commits November 29, 2026 17:40
The options-struct short from the lvgl26 size findings runs beside the
constexpr assembler flagship of that day.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
A short from the lvgl26 size findings. One property set through an
options struct kept all six setters of a demo widget at -Os on ARM GCC
16.2; naming the member as a template argument kept one. In lvgl26 the
same change was 34,024 B of flash and 3,600 B of RAM (research note,
PR 303), and PR 307 called constant setters inline.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
…s-struct post

Card headline "One option set, six setters linked", paid off by the
demo's -Os link table. Captions name the -O2 case and carry the lvgl26
disclosure. Suggested time Wednesday 2026-12-16, 16:00 UTC.

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>
Claude-Session: https://claude.ai/code/session_01Ju4yEXENcZNaSNEQWEri2X
@filipsajdak
filipsajdak force-pushed the feat/post-options-struct-links-every-setter branch from faffb7b to 7c6c2eb Compare November 29, 2026 16:40
@filipsajdak
filipsajdak merged commit 8b9a5ca into main Nov 29, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant