pub struct CompilerConfigOptions { /* private fields */ }
Expand description

Defines a group of configuration options for AOT compiler.

CompilerConfigOptions is used to set the AOT compiler related configuration options, which are

  • Compiler Optimization Levels

    • O0 performs as many optimizations as possible.

    • O1 optimizes quickly without destroying debuggability

    • 02 optimizes for fast execution as much as possible without triggering significant incremental compile time or code size growth

    • O3 optimizes for fast execution as much as possible

    • Os optimizes for small code size as much as possible without triggering significant incremental compile time or execution time slowdowns

    • Oz optimizes for small code size as much as possible

  • Compiler Output Formats

    • Native specifies the output format is native dynamic library (*.wasm.so)
    • Wasm specifies the output format is WebAssembly with AOT compiled codes in custom section (*.wasm).
  • dump_ir determines if AOT compiler generates IR or not

  • generic_binary determines if AOT compiler generates the generic binary or not.

  • interruptible determines if AOT compiler generates interruptible binary or not.

The configuration options above are only effective to AOT compiler.

Implementations§

Creates a new instance of CompilerConfigOptions.

Sets the output binary format of AOT compiler.

Argument
  • format specifies the format of the output binary.

Sets the optimization level of AOT compiler.

Argument
  • level specifies the optimization level of AOT compiler.

Sets the dump IR option of AOT compiler.

Argument
  • enable specifies if dump ir or not.

Sets the generic binary option of AOT compiler.

Argument
  • enable specifies if generate the generic binary or not when perform AOT compilation.

Enables or Disables the Interruptible option of AOT compiler.

This option determines to generate interruptible binary or not when compilation in AOT compiler.

Argument
  • enable specifies if turn on the Interruptible option.

Trait Implementations§

Returns a copy of the value. Read more
Performs copy-assignment from source. Read more
Formats the value using the given formatter. Read more
Returns the “default value” for a type. Read more

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

The resulting type after obtaining ownership.
Creates owned data from borrowed data, usually by cloning. Read more
Uses borrowed data to replace owned data, usually by cloning. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.