Skip to content

Ability to call JIT-compiled function without hard-coding function signature with mem::transmute #8

@keyneom

Description

@keyneom

In the example provided, the function signature for the to-be compiled code-string must be known in advance in order to be able to call into the function properly.

https://github.com/CraneStation/simplejit-demo/blob/4b7b8099346d877fe559dd5b593b18344d62e30d/src/toy.rs#L47

Is it possible to make a call dynamically using an array of parameters instead of being required to mem::transmute to the correct function signature?

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