Expand description
Object creator for Wasm Compilations.
Given a compilation result (this is, the result when calling Compiler::compile_module
)
this exposes functions to create an Object file for a given target.
Re-exports§
pub use object;
Modules§
Structs§
- Object
- A writable relocatable object file.
- Object
Metadata Builder - ObjectMetadataBuilder builds serialized module metadata include in an object. In addition, it also relies on information from ModuleInfo to build a table of function pointers, trmampolines and dynamic function trampoline pointers. ObjectMetadataBuilder takes care of setting up relocations, so a linker can automatically fill in actuall addesses of all relavant functions. There is no need to piece the information together in the glue C file.
Enums§
- Object
Error - The Object error can occur when creating an object file
from a
Compilation
.
Functions§
- emit_
compilation - Emit the compilation result into an existing object.
- emit_
data - Write data into an existing object.
- emit_
serialized - Emit the compilation result into an existing object.
- get_
object_ for_ target - Create an object for a given target
Triple
.