Skip to content

bricks/_common/common.mk: Exclude unused VfsRom qstrs. - #488

Open
dlech wants to merge 1 commit into
pybricks:masterfrom
dlech:movehub-drop-dead-translation-units
Open

bricks/_common/common.mk: Exclude unused VfsRom qstrs.#488
dlech wants to merge 1 commit into
pybricks:masterfrom
dlech:movehub-drop-dead-translation-units

Conversation

@dlech

@dlech dlech commented Sep 4, 2026

Copy link
Copy Markdown
Member

MICROPY_VFS_ROM is needed so that downloaded program data can be referenced in place, but MICROPY_VFS is not enabled, so VfsRom itself is never registered. The linker discards the code, but the qstrs are collected from the sources regardless. Saves around 120 bytes.

MICROPY_VFS_ROM is needed so that downloaded program data can be referenced
in place, but MICROPY_VFS is not enabled, so VfsRom itself is never
registered. The linker discards the code, but the qstrs are collected from
the sources regardless. Saves around 120 bytes.
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