You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: newsletters/2018-03-29.md
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -157,7 +157,7 @@ This feature has been proposed for stabilization (cf. [rust-lang/rust#24111]).
157
157
158
158
**Background**: Some assembly operations can be implemented as external assembly files that are then called into using FFI; other ops though do need to be inlined into the function from which they are called to prevent losing semantics. Using external assembly file can be done on the stable channel. The second type of operation requires the unstable `asm!` macro.
159
159
160
-
The compiler team is not 100% sure on whether they want to stabilize inline assembly for the edition release. The embedded WG has proposed an alternative proposal: expose *some* assembly operations that need to be inlined as "Rust intrinsics" -- in a similar fashion to how SIMD is being implemented; these intrinsics would be in the `core::asm::$ARCH` module and they could either be implemented by lowering to a LLVM intrinsics or using inline assembly. For example:
160
+
The compiler team is not 100% sure on whether they want to stabilize inline assembly for the edition release. The embedded WG has proposed an alternative proposal: expose *some* assembly operations that need to be inlined as "Rust intrinsics" -- in a similar fashion to how SIMD is being implemented; these intrinsics would be in the `core::asm::$ARCH` module and they could either be implemented by lowering to a LLVM intrinsic or using inline assembly. For example:
161
161
162
162
```rust
163
163
pubmodasm {
@@ -172,13 +172,13 @@ pub mod asm {
172
172
}
173
173
```
174
174
175
-
These would be stable APIs with an unstable implementation. If LLVM assembler syntax the implementations of these functions would have to be updated.
175
+
These would be stable APIs with an unstable implementation. If LLVM assembler syntax changes, the implementations of these functions would have to be updated.
176
176
177
177
The embedded WG will submit an RFC proposing the `asm` module and that will include a list of assembly operations that (a) are common and (b) need to be inlined for different architectures.
178
178
179
179
### Unstable Feature #6: `#[used]`
180
180
181
-
This experimental feature has been in the compiler for a while and it's required in some scenarios when using LTO to prevent the compiler some function / `static` that needs to be in the final binary.
181
+
This experimental feature has been in the compiler for a while and it's required in some scenarios when using LTO to prevent the compiler from dead-stripping some function / `static` that needs to be in the final binary.
182
182
183
183
We'll try to get it stabilized by the edition release but it's not a high priority feature.
0 commit comments