Skip to content

Allow the choosing of emit bit length in runtime, not at compile time. #217

@HorseTrain

Description

@HorseTrain

Current Limitation with Xbyak Code Generation Mode
In Xbyak, emitting code for 64-bit mode requires defining XBYAK64 at compile time. While this approach works for single-target use cases, it limits flexibility in more complex scenarios. For instance, a JIT compiler running in a 64-bit environment may need to generate 32-bit code dynamically. Since the emit mode is fixed at compile time, supporting multiple target architectures within the same application becomes cumbersome.

A more adaptable design would allow the code generation mode (32-bit vs. 64-bit) to be specified at runtime—ideally through the CodeGenerator constructor—enabling more versatile use cases such as cross-mode JIT compilation and hybrid execution environments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions