Skip to content

Commit edd036d

Browse files
committed
Mention differences between LLVM and GCC syntax
1 parent 99055a7 commit edd036d

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

posts/inside-rust/2020-05-25-new-inline-asm.md

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,12 @@ however, this syntax just exposed a very raw version of LLVM's assembly
2020
construct, with no safeguards to help developers use it. Getting any detail of
2121
this syntax even slightly wrong tended to produce an Internal Compiler Error
2222
(ICE) rather than the kind of friendly error message you've come to expect from
23-
rustc. This syntax also had little to no hope of being supported on any
24-
non-LLVM backend. As a result of these limitations, the `asm!` syntax was
25-
highly unlikely to ever graduate from nightly to stable Rust, despite being one
26-
of the most requested features.
23+
rustc. This syntax was also error-prone for another reason: it looks similar to
24+
GCC's inline assembly syntax, but has subtle differences (such as the names in
25+
register constraints). This syntax also had little to no hope of being
26+
supported on any non-LLVM backend. As a result of all these limitations, the
27+
`asm!` syntax was highly unlikely to ever graduate from nightly to stable Rust,
28+
despite being one of the most requested features.
2729

2830
In an effort to improve `asm!` and bring it to more users, [Amanieu
2931
d'Antras](https://github.com/Amanieu) designed and implemented a new,

0 commit comments

Comments
 (0)