zink icon indicating copy to clipboard operation
zink copied to clipboard

Replace the global allocator of rust for EVM

Open clearloop opened this issue 2 years ago • 0 comments

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

clearloop avatar Jul 17 '23 13:07 clearloop