Skip to content

wasm-encoder: add option to disable float instructions #2155

@StackOverflowExcept1on

Description

@StackOverflowExcept1on

We make blockchain based on substrate framework. Our nodes execute .wasm runtime using wasmtime, which allows us to do forkless upgrades. We also have .wasm smart contracts that compile to wasm32v1-none. Inside our runtime we use wasm-parser and wasm-encoder for instrumentation (stack limits, adding gas globals). Neither our runtime nor the smar contarcts should contain f32 / f64 instructions, since they are non-deterministic. Could you add compile option to disable f32 / f64 instructions? We have already configured wasm-parser for our .wasm programs and it works fine, but we don't have the option to customize Instruction type in wasm-encoder. I could do PR, just want hear opinion on it.

ref gear-tech/gear#4604

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions