Skip to content

debugstrs support. - #23

Merged
ltratt merged 1 commit into
ykjit:masterfrom
ltratt:debugstrs
Jul 27, 2026
Merged

debugstrs support.#23
ltratt merged 1 commit into
ykjit:masterfrom
ltratt:debugstrs

Conversation

@ltratt

@ltratt ltratt commented Jul 27, 2026

Copy link
Copy Markdown

This can be enabled with YKMP_DEBUG_STRS=1 make ... when building. Since this commit reuses micropython's existing bytecode dumping, it gives fairly detailed output e.g.:

/home/ltratt/yk-benchmarks/suites/awfy/Python/richards.py:53: LOAD_FAST 2

This commit is simplistic in one way: it doesn't attempt to free debugstrs. Since they're mostly used for debugging, that felt like an unnecessary hurdle to climb for now.

This can be enabled with `YKMP_DEBUG_STRS=1 make ...` when building.
Since this commit reuses micropython's existing bytecode dumping, it
gives fairly detailed output e.g.:

```
/home/ltratt/yk-benchmarks/suites/awfy/Python/richards.py:53: LOAD_FAST 2
```

This commit is simplistic in one way: it doesn't attempt to free
debugstrs. Since they're mostly used for debugging, that felt like an
unnecessary hurdle to climb for now.
@ltratt ltratt self-assigned this Jul 27, 2026
@ltratt
ltratt added this pull request to the merge queue Jul 27, 2026
Merged via the queue into ykjit:master with commit cf81b03 Jul 27, 2026
2 checks passed
@ltratt
ltratt deleted the debugstrs branch July 27, 2026 13:58
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