zink
zink copied to clipboard
Replace the global allocator of rust for EVM
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