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

Runtime access to EOF header #39

Closed
chfast opened this issue Jan 11, 2024 · 3 comments
Closed

Runtime access to EOF header #39

chfast opened this issue Jan 11, 2024 · 3 comments

Comments

@chfast
Copy link
Member

chfast commented Jan 11, 2024

  • execution start:
    • the offset of the first code section
  • CALLF/JUMPF
    • max_stack_height (type section)
    • inputs (type section)
    • target code section offset
@gumb0
Copy link
Contributor

gumb0 commented Jan 11, 2024

CALLF/JUMPF also require number of target inputs for stack overflow check, because max_stack_height definition includes function inputs, and we need to subtract them not to double count.

@chfast
Copy link
Member Author

chfast commented Jan 11, 2024

CALLF/JUMPF also require number of target inputs for stack overflow check, because max_stack_height definition includes function inputs, and we need to subtract them not to double count.

This specifically can be fixed by doing the subtraction in the header.

@chfast
Copy link
Member Author

chfast commented Jun 23, 2024

Closed in favor of #134.

@chfast chfast closed this as completed Jun 23, 2024
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

No branches or pull requests

2 participants