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

How many global variables can be used in a FunC contract? #757

Open
anton-trunov opened this issue Sep 7, 2024 · 2 comments
Open

How many global variables can be used in a FunC contract? #757

anton-trunov opened this issue Sep 7, 2024 · 2 comments

Comments

@anton-trunov
Copy link

Is your feature request related to a problem? Please describe.

This is a common source of confusion. People try to use too many global variables and run into issues.

Describe the solution you'd like

Clearly document the limit of the number of global variables in FunC.

Additional context

No response

@anton-trunov
Copy link
Author

anton-trunov commented Sep 7, 2024

The rumor has it the limit is 31 because the FunC compiler uses GETGLOB k/SETGLOB k instructions to manipulate global vars and those only allow k to be up to 31.

@tengkusyahid
Copy link

one like this blum crypto

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