Files
wasmtime/cranelift/module
Pat Hickey 13c6bdd9ba cranelift-module: add iterator methods to ModuleDeclarations
The predecessor interface made it possible to iterate across all
function and data declarations. This is still useful and easy enough to
provide.
2020-10-07 20:06:58 -07:00
..
2020-09-23 13:54:02 -05:00
2020-10-01 09:53:23 +02:00

This crate provides module-level functionality, which allow multiple functions and data to be emitted with Cranelift and then linked together.

This crate is structured as an optional layer on top of cranelift-codegen. It provides additional functionality, such as linking, however users that require greater flexibility don't need to use it.

A module is a collection of functions and data objects that are linked together. The Module trait that defines a common interface for various kinds of modules. Most users will use one of the following Module implementations:

  • SimpleJITModule, provided by cranelift-simplejit, which JITs code to memory for direct execution.
  • ObjectModule, provided by cranelift-object, which emits native object files.