bytecodealliance / bytecodealliance/cranelift-jit-demo
Add an example of calling rust code from the jit
Open
- Dominant language
- Rust
- Stars
- 763
- Forks
- 65
- PR merge metrics
- No merged PRs in 30d
Description
For example, write a simple `print` function which can be called from compiled code to print a value.
Contributor guide
No contributing guide indexed for this repository
Research direction
The issue does not name a file or test. Start by reading the existing JIT demo and its compiled-code entry point, then trace how host functions are exposed to generated code. Done means a simple Rust print function can be called from compiled code to print a value, with the example runnable through the demo.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- rust
- Domain
- compilers
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100