<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>第26章 Unsafe on 编程那些事儿</title><link>https://before80.github.io/prgms/Rust/RustByPractice/unsafe/</link><description>Recent content in 第26章 Unsafe on 编程那些事儿</description><generator>Hugo</generator><language>zh-cn</language><lastBuildDate>Fri, 21 Aug 2026 22:34:20 +0800</lastBuildDate><atom:link href="https://before80.github.io/prgms/Rust/RustByPractice/unsafe/index.xml" rel="self" type="application/rss+xml"/><item><title>01-内联汇编</title><link>https://before80.github.io/prgms/Rust/RustByPractice/unsafe/01-inline-asm/</link><pubDate>Wed, 12 Aug 2026 20:00:00 +0800</pubDate><guid>https://before80.github.io/prgms/Rust/RustByPractice/unsafe/01-inline-asm/</guid><description>&lt;blockquote&gt;
&lt;p&gt;内容来源 · &lt;a href="https://github.com/sunface/rust-by-practice"&gt;Rust By Practice / Rust 语言实战&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;blockquote&gt;
&lt;p&gt;原文链接: &lt;a href="https://practice-rust-zh.beatai.org/unsafe/inline-asm.html"&gt;https://practice-rust-zh.beatai.org/unsafe/inline-asm.html&lt;/a&gt;&lt;/p&gt;
&lt;/blockquote&gt;
&lt;h1 id="内联汇编"&gt;内联汇编&lt;/h1&gt;
&lt;p&gt;Rust provides support for inline assembly via the &lt;code&gt;asm!&lt;/code&gt; macro.
It can be used to embed handwritten assembly in the assembly output generated by the compiler.
Generally this should not be necessary, but might be where the required performance or timing
cannot be otherwise achieved. Accessing low level hardware primitives, e.g. in kernel code, may also demand this functionality.&lt;/p&gt;</description></item></channel></rss>