Home
last modified time | relevance | path

Searched refs:program (Results 1 – 25 of 53) sorted by relevance

123

/wasmtime-44.0.1/crates/wasmtime/src/runtime/
H A Dnative_debug.rs152 let program: &mut ProgramHeader64<E> = in convert_object_elf_to_loadable_file() localVariable
154 program.p_type.set(e, PT_LOAD); in convert_object_elf_to_loadable_file()
155 program.p_offset.set(e, sh_offset); in convert_object_elf_to_loadable_file()
156 program.p_vaddr.set(e, v_offset as u64); in convert_object_elf_to_loadable_file()
157 program.p_paddr.set(e, v_offset as u64); in convert_object_elf_to_loadable_file()
158 program.p_filesz.set(e, sh_size); in convert_object_elf_to_loadable_file()
159 program.p_memsz.set(e, size as u64); in convert_object_elf_to_loadable_file()
/wasmtime-44.0.1/docs/
H A Dexamples-interrupting-wasm.md10 When a Wasm program's execution is interrupted, you can configure Wasmtime to do
13 * **Raise a trap:** This terminates the current Wasm program, and it is not
16 * **Async yield:** This pauses the current Wasm program, yields control back to
27 Fuel-based interruption is completely deterministic: the same program run with
29 program (unless it has enough fuel to complete its computation, or there is some
30 other form of non-determinism that causes the program to behave differently).
51 The downside is that it is non-deterministic. Running the same program with the
H A DWASI-tutorial.md5 simpler WebAssembly program written using the WebAssembly text format, and executing
19 Let's start with a simple C program which performs a file copy, which will
79 compile our program like so:
115 Now, let's port the C program defined in [From C](#from-c) section to Rust:
139 let program = args[0].clone();
142 eprintln!("usage: {} <from> <to>", program);
180 Ok, this program needs some command-line arguments. So let's give it some:
200 Now our program runs as expected!
204 which can be used to open files inside that directory. Now when the program
212 As a brief aside, note that we used the path `.` above to grant the program
[all …]
H A Dwmemcheck.md5 (`malloc` and `free` functions are visible and your program uses only the
16 If your program executes an invalid operation (load or store to non-allocated
18 memory twice) you will see an error that looks like a Wasm trap. For example, given the program
H A Dexamples-fast-compilation.md3 Wasmtime must compile a Wasm program before executing it. This means that, by
13 Wasm program that has already been compiled previously, it just grabs the cached
39 shape of the Wasm program. Wasmtime will generally enable parallel compilation
H A Dexamples-deterministic-wasm-execution.md21 them. This non-determinism can then be observed by the Wasm program by storing
66 succeed or fail before the program has begun execution.
69 little validator program that rejects Wasm modules that use
73 allocation fails, it will have failed before the Wasm program began
H A Dexamples-fast-execution.md57 However, if you are compiling a Wasm program on one machine and then running
58 that pre-compiled Wasm program on another machine, then during compilation
61 program. Configuring which ISA extensions are available on the target
H A Dexamples-wasip2.md17 For this WASI example, this Hello World program is compiled to a WebAssembly component using the WA…
29 Building this program generates `target/wasm32-wasip2/debug/wasi.wasm`, used below.
H A Dexamples-gcd.md10 This example shows off how run a wasm program which calculates the GCD of two
H A Dexamples-pre-compiling-wasm.md3 Wasmtime can compile a WebAssembly program to native code on one machine, and
8 do not have to wait for the associated Wasm program to compile before it can
H A Dexamples-debugging-native-debugger.md4 guest and the host (i.e. the Wasmtime CLI or your Wasmtime-embedding program) at
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example-named/
H A DREADME.md4 wasi-nn's "named model" API to load the ML model before the WebAssembly program
5 executes. Instead of loading the model bytes during program execution (which may
22 As before, this Rust [example] compiles to a WebAssembly program using the
29 The program is invoked with slightly different flags than the
/wasmtime-44.0.1/cranelift/jit/
H A DREADME.md6 See the [example program] for a brief overview of how to use this.
8 [example program]: https://github.com/bytecodealliance/wasmtime/blob/main/cranelift/jit/examples/ji…
/wasmtime-44.0.1/crates/wasi-nn/examples/classification-example/
H A DREADME.md5 wasi-nn program:
15 calls from the WebAssembly program to this framework, see the
40 Compile this Rust [example] to a WebAssembly program using the `wasm32-wasip1`
43 program to a `*.wasm` file in the `target` directory:
/wasmtime-44.0.1/crates/test-programs/
H A DREADME.md14 This suite is used for exercising `wasmtime`'s Rust APIs. Each test program in
22 `wasmtime` native executable. Each test program in this suite has particular
32 test program in this suite is a component which exports the wasi-cli command
38 Each test program executor spawns a fresh tokio runtime on a unique local
39 socket which responds to the requests made by a single test program. This
40 socket address is passed to the test program using the `HTTP_SERVER`
78 program invocations, and providing the default null stdio in others.
158 if a wasmtime developer adds a new test program, they also add a test which
/wasmtime-44.0.1/examples/min-platform/
H A DREADME.md30 general idea though is that this is a Linux program which will load the
47 The host for this is a Linux program which supplies the platform dependencies
49 program will load the embedding and execute it. This is mostly specific to
/wasmtime-44.0.1/crates/wasi-nn/tests/
H A Dtest-programs.rs48 for program in programs { in main()
51 let (run_test, mut check) = check_test_program(program); in main()
59 let trial = Trial::test(program, move || { in main()
/wasmtime-44.0.1/crates/debugger/wit/deps/
H A Drandom.wit13 /// provide pseudo-random values to any program exposed to
66 /// the calling program, under any circumstances, including on the first
/wasmtime-44.0.1/crates/wasi/src/p2/wit/deps/
H A Drandom.wit13 /// provide pseudo-random values to any program exposed to
66 /// the calling program, under any circumstances, including on the first
H A Dcli.wit16 /// Get the POSIX-style arguments to the program.
46 /// Run the program.
/wasmtime-44.0.1/crates/wasi-http/wit/deps/
H A Drandom.wit13 /// provide pseudo-random values to any program exposed to
66 /// the calling program, under any circumstances, including on the first
/wasmtime-44.0.1/crates/cranelift/src/debug/transform/
H A Dline_program.rs65 let (out_program, files) = transform.program(); in clone_line_program()
/wasmtime-44.0.1/crates/jit-icache-coherence/
H A DCargo.toml34 # This feature enables such optimizations, but the resulting program will *only*
/wasmtime-44.0.1/crates/wasi/src/p3/wit/deps/
H A Drandom.wit13 /// provide pseudo-random values to any program exposed to
74 /// the calling program, under any circumstances, including on the first
/wasmtime-44.0.1/crates/wasi-http/src/p3/wit/deps/
H A Drandom.wit13 /// provide pseudo-random values to any program exposed to
74 /// the calling program, under any circumstances, including on the first

123