paritytech / revive

Solidity compiler for PolkaVM
Apache License 2.0
38 stars 5 forks source link

disable sbrk and emulate EVM linear memory internally #76

Closed xermicus closed 1 month ago

xermicus commented 1 month ago

This PR gets rid of calling the PVM sbrk functionality because it was disabled in the pallet. Instead we emulate the EVM linear memory heap internally with a static memory buffer.

I also changed the memory tests to run differentially; I found no reason why we our linear memory implementation needs to differ in intentional ways.

Max mem size is initially set conservatively to 64kb.