Skip to content

Inline assembly #280

Closed
Closed
@Amanieu

Description

@Amanieu

TL;DR

  • Implement the new asm! syntax proposed in Inline assembly rfcs#2873.
  • The new syntax is much more user-friendly and has significantly more checks in rustc, which should make it impossible to trigger an ICE, unlike the old implementation.

Links and Details

In rust-lang/rust#71007 we deprecated the old asm! macro and told users to use llvm_asm! instead. The next step is to replace asm! with a macro implementing the new syntax proposed in the RFC.

The implementation PR has design notes on how the inline assembly passes through the various stages of the compiler (AST, HIR, MIR, etc).

Implementation PR: rust-lang/rust#69171
New RFC thread: rust-lang/rfcs#2873
Old RFC thread (now closed): rust-lang/rfcs#2850

Mentors or Reviewers

@nagisa has already performed an initial review of the implementation PR.

Metadata

Metadata

Assignees

No one assigned

    Labels

    major-changeA proposal to make a major change to rustcmajor-change-acceptedA major change proposal that was accepted

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions