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

parse: Don't use assembly code as data #34

Open
wants to merge 1 commit into
base: uxn
Choose a base branch
from

Conversation

samueldr
Copy link

@samueldr samueldr commented Jul 2, 2024

Fixes #29


Hi! 👋

Not sure the solution is correct, but it works.

I'm not sure if the text section should fold down repeated uses of e.g. the same string in the code to a single instance. Currently it does not, but if it does, it would be necessary to ensure that some asm(...) string that coincides with an arbitrary string elsewhere does not get elided accidentally.

Feel free to suggest changes, though provide good hints :).

@drawkula
Copy link

drawkula commented Jul 15, 2024

@samueldr ... can you add a branch including your fixes to your fork?
It'd be nice being able to use that one until your work got accepted upstream.

@samueldr
Copy link
Author

samueldr commented Jul 15, 2024

@samueldr ... can you add a branch including your fixes to your fork? It'd be nice being able to use that one until your work got accepted upstream.

Sure,

Still unsure (needs other eyes on it) about the optimizations commit at the tip, so check with it reverted if you see differences in behaviour with -O0 and -O1.

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.

asm() argument shouldn't be data
2 participants