Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Comments

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

Open
samueldr wants to merge 1 commit intolynn:uxnfrom
samueldr:fix/29-asm-data
Open

parse: Don't use assembly code as data#34
samueldr wants to merge 1 commit intolynn:uxnfrom
samueldr:fix/29-asm-data

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