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

Replace the global allocator of rust for EVM #46

Open
clearloop opened this issue Jul 17, 2023 · 0 comments
Open

Replace the global allocator of rust for EVM #46

clearloop opened this issue Jul 17, 2023 · 0 comments

Comments

@clearloop
Copy link
Member

clearloop commented Jul 17, 2023

Describe the feature

memory related stuffs are different between dlmalloc ( allocator for WASM in rust ) and EVM

The main blocker of compiling Zink projects EVM contracts in real world is that that we are currently missing the implementation of memory allocator:

Since EVM uses 32-byte as the basic unit for memory management, we need to implement our own memory allocator to align the compiled memory operations in WASM to EVM, see alloc::GlobalAlloc

Solution

No response

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 a pull request may close this issue.

1 participant