commit p2

This commit is contained in:
Able 2021-11-14 22:58:13 -06:00
parent b58a4af6fa
commit 32d6f1e4fd
2 changed files with 11 additions and 13 deletions

View file

@ -7,8 +7,6 @@ use wasmi::{
mod wasm_sys; mod wasm_sys;
use wasm_sys::SysCall; use wasm_sys::SysCall;
pub const KILL: usize = 0;
struct HostFunctions; struct HostFunctions;
impl HostFunctions { impl HostFunctions {
fn check_signature(&self, index: usize, signature: &Signature) -> bool { fn check_signature(&self, index: usize, signature: &Signature) -> bool {
@ -76,7 +74,7 @@ fn main() {
// Parse WAT (WebAssembly Text format) into wasm bytecode. // Parse WAT (WebAssembly Text format) into wasm bytecode.
// let wasm_binary = wabt::wat2wasm(include_str!("../wasm/test.wat")); // let wasm_binary = wabt::wat2wasm(include_str!("../wasm/test.wat"));
let wasm_binary = //wabt::wat2wasm( let wasm_binary = //wabt::wat2wasm(
include_bytes!("../src/ableos-wasm-test.wasm"); //.unwrap(); include_bytes!("../wasm/ableos-wasm-test.wasm"); //.unwrap();
// ); // );
/* /*
let wasm_binary = match wasm_binary { let wasm_binary = match wasm_binary {

BIN
wasm/ableos-wasm-test.wasm Executable file

Binary file not shown.