Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Better formatting when printing working stack/return stack #21

Open
kiedtl opened this issue Sep 17, 2024 · 0 comments
Open

Better formatting when printing working stack/return stack #21

kiedtl opened this issue Sep 17, 2024 · 0 comments
Labels
lang-enhance Enhance existing language feature

Comments

@kiedtl
Copy link
Owner

kiedtl commented Sep 17, 2024

The output of the dbg functionality can be far better, with the wealth of info that Finwë has. In particular, it should know what the types of the data on the stack, and format that data accordingly (while also printing the raw values just in case that's what's wanted.

This would necessitate keeping track of all that information during compile time. To prevent memory usage from blowing up, we could stick a special flag on dbg function that makes the caller store this information for each node during analysis rather than throwing it away: #intrinsics-store-analysis-data.

To be clear, this data would not be emitted in the ROM.

Or... maybe it could be emitted in the upcoming .finwe_syms file? Then we'd have to store it for each function anyway...

@kiedtl kiedtl added the lang-enhance Enhance existing language feature label Sep 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
lang-enhance Enhance existing language feature
Projects
None yet
Development

No branches or pull requests

1 participant