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

use #assemble in ctor #5

Merged
merged 1 commit into from
Mar 19, 2024
Merged

use #assemble in ctor #5

merged 1 commit into from
Mar 19, 2024

Conversation

fjl
Copy link
Contributor

@fjl fjl commented Mar 18, 2024

Using #include is wrong because labels in the deployed code will have the wrong offset. This is why we have #assemble in geas. It compiles the included file as a new program (with labels starting at zero), then inserts the bytecode at the #assemble directive position.

@fjl
Copy link
Contributor Author

fjl commented Mar 18, 2024

Maybe you got confused because %include in etk behaves like #assemble. In geas, the #include directive is like %import in etk.

@lightclient
Copy link
Owner

Ah thank you! @mkalinin was wondering why some of the offsets were wrong in the EIP.

@lightclient lightclient merged commit bb7d66d into lightclient:main Mar 19, 2024
1 check 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.

2 participants