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

Dynamically sized arrays unimplemented in eWASM target #19

Open
egroge opened this issue Sep 9, 2020 · 0 comments
Open

Dynamically sized arrays unimplemented in eWASM target #19

egroge opened this issue Sep 9, 2020 · 0 comments
Labels
enhancement New feature or request ewasm Code generation for the eWASM system for Ethereum

Comments

@egroge
Copy link
Collaborator

egroge commented Sep 9, 2020

Dynamically sized arrays are unimplemented for the eWASM target.

At the moment, only fixed size arrays exist. They are stack allocated, and therefore cannot be returned from functions. To implement dynamic arrays, obviously heap allocation will be necessary, which means allocating and freeing memory must be considered. Mallocs and frees can be build with the LLVM wrapper that is in use. Obviously it is essential given the nature of smart contracts that there are no memory leaks when this is implemented.

@egroge egroge added enhancement New feature or request ewasm Code generation for the eWASM system for Ethereum labels Sep 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request ewasm Code generation for the eWASM system for Ethereum
Projects
None yet
Development

No branches or pull requests

1 participant