Skip to content

Commit e6d22d0

Browse files
booklearnersunfishcode
authored andcommitted
update references to simplejit in readme
1 parent 537ee84 commit e6d22d0

1 file changed

Lines changed: 7 additions & 7 deletions

File tree

‎README.md‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ Hello!
22

33
This is a simple demo that JIT-compiles a toy language, using Cranelift.
44

5-
It uses the new SimpleJIT interface in development
6-
[here](https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/jit). SimpleJIT takes care
5+
It uses the new JIT interface in development
6+
[here](https://github.com/bytecodealliance/wasmtime/tree/main/cranelift/jit). JIT takes care
77
of managing a symbol table, allocating memory, and performing relocations, offering
88
a relatively simple API.
99

@@ -17,17 +17,17 @@ and it makes efficient use of memory.
1717

1818
And Cranelift is being architected to allow flexibility in how one uses it.
1919
Sometimes that flexibility can be a burden, which we've recently started to
20-
address in a new set of crates, `cranelift-module`, `cranelift-simplejit`, and
20+
address in a new set of crates, `cranelift-module`, `cranelift-jit`, and
2121
`cranelift-faerie`, which put the pieces together in some easy-to-use
2222
configurations for working with multiple functions at once. `cranelift-module`
2323
is a common interface for working with multiple functions and data interfaces
24-
at once. This interface can sit on top of `cranelift-simplejit`, which writes
24+
at once. This interface can sit on top of `cranelift-jit`, which writes
2525
code and data to memory where they can be executed and accessed. And, it can
2626
sit on top of `cranelift-faerie`, which writes code and data to native .o files
2727
which can be linked into native executables.
2828

29-
This post introduces Cranelift by walking through a simple JIT demo, using
30-
the [`cranelift-simplejit`](https://crates.io/crates/cranelift-simplejit) crate.
29+
This post introduces Cranelift by walking through a JIT demo, using
30+
the [`cranelift-jit`](https://crates.io/crates/cranelift-jit) crate.
3131
Currently this demo works on Linux x86-64 platforms. It may also work on Mac
3232
x86-64 platforms, though I haven't specifically tested that yet. And Cranelift
3333
is being designed to support many other kinds of platforms in the future.
@@ -376,7 +376,7 @@ make any references so there isn't anything to do) and to obtain the final
376376
runtime address of the data, which we then convert back into a Rust slice for
377377
convenience.
378378

379-
And to show off a handy feature of the simplejit backend, it can look up symbols
379+
And to show off a handy feature of the jit backend, it can look up symbols
380380
with `libc::dlsym`, so you can call libc functions such as `puts` (being careful
381381
to NUL-terminate your strings!). Unfortunately, `printf` requires varargs, which
382382
Cranelift does not yet support.

0 commit comments

Comments
 (0)