Skip to content

Propose add function level inline assembly for rust. #1793

Open
@lygstate

Description

@lygstate

For example:

extern "C" {
pub fn get_registers() inline_assembly = 'ByteArray Literal for the Object file to be linked directly';
}

and the ByteArray Literal could be generated a procedure macro.

extern "C" {
pub fn get_registers() inline_assembly = get_registers_macro_assembly!();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-langRelevant to the language team, which will review and decide on the RFC.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions