separate the context intialization from the function execution (#21)

the start function is called from the initialization phase
This commit is contained in:
Geoffroy Couprie
2018-11-27 14:33:56 +01:00
committed by Dan Gohman
parent 95fba6a9de
commit bf5a06bc95
4 changed files with 60 additions and 20 deletions

View File

@@ -46,11 +46,11 @@ mod vmcontext;
pub use compilation::{compile_module, Compilation, Relocation, RelocationTarget, Relocations};
pub use environ::{ModuleEnvironment, ModuleTranslation};
pub use module::{DataInitializer, Module, TableElements};
pub use module::{DataInitializer, Export, Module, TableElements};
#[cfg(not(feature = "std"))]
mod std {
pub use alloc::{string, vec};
pub use core::*;
pub use core::{i32, str, u32};
}
}