-
Notifications
You must be signed in to change notification settings - Fork 144
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
Why PlatON wasm vm supports memory malloc functions #56
Comments
Efficient use of memory, reusing destructed memory. |
What is the mechanism of the memory use?/ How PlatON manage wavm memory? |
The question you mentioned is more detailed and may not be clearly described in a few words. Do you have any problems during the specific application development process? You can send a look at the specific problems you have encountered. thx @MaggieNgWu |
Let's make it simple. In which case, a smart contract wasm code would call "malloc" function? |
you can use ‘malloc' as you need |
Would you please make an example? |
Hi, guys
I was wondering why PlotON VM supply functions of "malloc" and "free" memory.
This struct seems like defined by PlatON. As I have known, memory in WAVM is a byte array, used by program to store string and other values. The memory can be managed by WAVM. So, why PlatON would like to define this Memory structure and supply "malloc" function for smart contracts?
The text was updated successfully, but these errors were encountered: