Skip to content

Firmware atlas from C++ RTTI; repo checks and CI - #1

Merged
complex-ping merged 1 commit into
mainfrom
firmware-atlas-and-checks
Nov 3, 2026
Merged

complex-ping merged 1 commit into
mainfrom
firmware-atlas-and-checks

Conversation

@complex-ping

Copy link
Copy Markdown
Owner

Adds a queryable map of stock ColdFire code and checks that keep the repo clean without any firmware.

Firmware atlas

scripts/cfatlas.py builds a local SQLite database from the user's own OS image in seconds. The ColdFire OS kept its C++ RTTI, so it recovers classes, inheritance, vtable slots, constructors, and method names through std::function lambdas.

Result on OS 1.11: 12,226 functions, 1,642 types, 743 with vtables, 36.8 % of instructions in a named function.

Verified against a known address: the LFO page title at 0x40205660 (vt + 76) resolves to slot 19 of LfoPageView, inherited from ParameterPageView.

The database stays on the user's machine and is git-ignored.

Docs

  • firmware.md: RTTI layout, known static-scan traps, what differs on OS 1.12
  • workflow.md, emulators.md: pitfalls that cost real time
  • SKILL.md, README.md: point to the atlas

Checks

tests/skill_check.py and tests/test_cfatlas.py need no firmware and run in CI. They reject tracked firmware-derived files and personal paths, check skill routing, and test the RTTI reader on a synthetic image.

Not changed

Scripts and addresses still target OS 1.11. Examples were not re-run: nothing they import changed.

🤖 Generated with Claude Code

- scripts/cfatlas.py: functions, callers, classes, vtable slots and strings from the user's own image; findings persist in names.tsv
- firmware.md: RTTI layout, static-scan traps, what changed in OS 1.12
- workflow.md, emulators.md: pitfalls that cost real time
- tests/: firmware-free RTTI tests and a repo check (no Elektron data, no personal paths, docs name shipped tools); CI runs both

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@complex-ping
complex-ping merged commit 9cda0c8 into main Nov 3, 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