Closed
Description
We'd like to be able to have a single instance of the microvium code, but allow different compartments to use it with different heaps. This requires our malloc / free callbacks to have some way of identifying which mvm_VM
they are being called on behalf of (and, ideally, getting some state from it). My ideal interface would make it possible to add a header to the mvm_VM
structure and have the mvm_VM
be passed to the alloc and free callbacks.
Somewhat related: it would be nice if the functions in microvium.h
that are implemented in microvium.c
had a MICROVIUM_EXPORT
macro in front of them (with a default empty definition) that integrators can use to define custom calling conventions, visibility, and so on.
Metadata
Metadata
Assignees
Labels
No labels