{"id":45220,"date":"2022-12-21T00:28:02","date_gmt":"2023-10-01T19:25:08","guid":{"rendered":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/"},"modified":"2024-04-29T06:15:19","modified_gmt":"2024-04-28T22:15:19","slug":"45220-2","status":"publish","type":"post","link":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/","title":{"rendered":""},"content":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f\u81ea\u4f5cOS Advent Calendar 2016 16\u65e5\u76ee\u306e \u8a18\u4e8b\u3067\u3059\u3002<\/p>\n<h1>\u306f\u3058\u3081\u306b<\/h1>\n<p>\u5927\u5b66\u306b\u5165\u3063\u305f\u9803\u304b\u3089OS\u81ea\u4f5c\u306b\u8208\u5473\u304c\u3042\u308a\u3001\u300c30\u65e5\u3067\u3067\u304d\u308b\uff01\u3000OS\u81ea\u4f5c\u5165\u9580\u300d\u3092\u898b\u306a\u304c\u3089\u306f\u308a\u307c\u3066OS\u3082\u3069\u304d\u3092\u3064\u304f\u3063\u3066\u904a\u3093\u3067\u3044\u307e\u3057\u305f(OS\u81ea\u4f5c\u3092\u59cb\u3081\u305f\u306e\u306f\u672c\u304c\u51fa\u7248\u3055\u308c\u308b\u5c11\u3057\u524d\u3067\u3059)\u3002<\/p>\n<p>\u6642\u306f\u6d41\u308c\u30662016\u5e74\u30fb\u30fb\u30fbRust\u3067OS\u304c\u4f5c\u308c\u308b\u3068\u3044\u3046\u8a71\u3092\u3069\u3053\u304b\u3067\u77e5\u3063\u3066\u4ee5\u6765\u3001Rust\u3067OS\u3092\u4f5c\u3063\u3066\u307f\u305f\u3044\u3068\u3044\u3046\u6c17\u6301\u3061\u304c\u5f37\u304f\u306a\u308a\u3001\u4f5c\u308a\u59cb\u3081\u308b\u3053\u3068\u306b\u3057\u307e\u3057\u305f\u3002<\/p>\n<p>\u4f5c\u308a\u59cb\u3081\u3066\u307f\u305f\u3082\u306e\u306e\u3001\u3044\u307e\u3060\u306b\u307b\u3068\u3093\u3069\u4f55\u3082\u3067\u304d\u3066\u306a\u3044\u72b6\u614b\u3067\u3059\u304c\u3001\u74b0\u5883\u69cb\u7bc9\u3057\u3066\u30d6\u30fc\u30c8\u30d7\u30ed\u30b0\u30e9\u30e0\u304b\u3089Rust\u306e\u30b3\u30fc\u30c9\u3092\u547c\u3073\u51fa\u3059\u304f\u3089\u3044\u306f\u3067\u304d\u305f\u306e\u3067\u3001\u672c\u8a18\u4e8b\u3067\u306fRust\u3092\u4f7f\u3063\u3066OS\u81ea\u4f5c\u3057\u305f\u3044\u4eba\u306b\u5411\u3051\u3066\u74b0\u5883\u69cb\u7bc9\u306e\u624b\u9806\u306b\u3064\u3044\u3066\u89e3\u8aac\u3057\u3066\u3044\u304d\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<h1>\u6ce8\u610f\u4e8b\u9805<\/h1>\n<p>\u672c\u8a18\u4e8b\u3067\u89e3\u8aac\u3059\u308b\u624b\u9806\u306fi686(Intel 32bit CPU)\u74b0\u5883\u5411\u3051\u3068\u306a\u308a\u307e\u3059\u3002\u307e\u305f\u3001Mac OS X El Capitan\u3001\u53ca\u3073Debian or Ubuntu\u4e0a\u3067\u30d3\u30eb\u30c9\u3059\u308b\u3053\u3068\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u3044\u308b\u305f\u3081\u3001\u7279\u306bWindows\u74b0\u5883\u3067\u69cb\u7bc9\u3057\u305f\u3044\u65b9\u306b\u3064\u3044\u3066\u306f\u3001\u5225\u9014\u8aad\u307f\u304b\u3048\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002<\/p>\n<h1>Let&#8217;s \u74b0\u5883\u69cb\u7bc9!<\/h1>\n<h2>rustup\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Rust\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3059\u308b\u65b9\u6cd5\u306f\u69d8\u3005\u3042\u308a\u307e\u3059\u304c\u3001Rust\u306b\u3082pyenv\u3084rbenv\u306e\u3088\u3046\u306a\u30c4\u30fc\u30eb\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u308c\u304crustup\u3067\u3059\u3002\u5c06\u6765\u7684\u306bi686\u4ee5\u5916\u306e\u74b0\u5883\u5411\u3051\u306b\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u3044\u5834\u5408\u306b\u5927\u5909\u4fbf\u5229\u306a\u306e\u3067\u3001rustup\u3092\u4f7f\u3063\u3066Rust\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u3053\u3067\u306f\u89e3\u8aac\u3057\u3066\u3044\u306a\u3044\u4f7f\u3044\u65b9\u306a\u3069\u306f\u3001\u4e0b\u8a18GitHub\u30ea\u30dd\u30b8\u30c8\u30ea\u306eReadme.md\u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\u3002<br \/>\nhttps:\/\/github.com\/rust-lang-nursery\/rustup.rs<\/p>\n<p>rustup\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u306f\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3060\u3051\u3067\u3059(Mac, Linux\u306e\u5834\u5408)\u3002<\/p>\n<pre class=\"post-pre\"><code>curl https:\/\/sh.rustup.rs <span class=\"nt\">-sSf<\/span> | sh\r\n<\/code><\/pre>\n<p>\u3053\u306e\u30b3\u30de\u30f3\u30c9\u3092\u6253\u3064\u3053\u3068\u3067\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u3001\u3042\u3068\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u52dd\u624b\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u308c\u307e\u3059\u3002\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u5b9f\u884c\u304c\u7d42\u308f\u3063\u305f\u9803\u306b\u306f\u3001rustup\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3082\u5b8c\u4e86\u3067\u3059\uff01<\/p>\n<p>rustup\u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u304d\u305f\u3089\u3001\u74b0\u5883\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u30b7\u30a7\u30eb\u3092\u7acb\u3061\u4e0a\u3052\u305f\u969b\u306b<\/p>\n<pre class=\"post-pre\"><code>~\/.cargo\/env\r\n<\/code><\/pre>\n<p>\u304c\u8aad\u307f\u8fbc\u307e\u308c\u308b\u3088\u3046\u306b\u8a2d\u5b9a\u3092\u3057\u3066\u304a\u304f\u3068\u826f\u3044\u3067\u3057\u3087\u3046\u3002<\/p>\n<h2>Rust\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u3055\u3066\u3001\u6b21\u306frustup\u3092\u4f7f\u3063\u3066Rust\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3059\u3002<\/p>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u5f53\u305f\u3063\u3066\u6ce8\u610f\u3057\u3066\u307b\u3057\u3044\u306e\u306f\u3001Rust\u3067OS\u3092\u81ea\u4f5c\u3059\u308b\u305f\u3081\u306b\u5fc5\u8981\u306a\u8a00\u8a9e\u6a5f\u80fd\u306fnightly\u30d3\u30eb\u30c9\u306eRust\u3092\u4f7f\u308f\u306a\u3051\u308c\u3070\u306a\u3089\u306a\u3044\u3068\u3044\u3046\u3053\u3068\u3067\u3059\u3002<\/p>\n<p>\u3053\u306e\u8fba\u306f\u3067\u304d\u308c\u3070stable\u3067\u4f5c\u308c\u308b\u3088\u3046\u306b\u3057\u3066\u304f\u308c\u308b\u3068\u826f\u3044\u306e\u3067\u3059\u304c\u30fb\u30fb\u30fb\u3002<\/p>\n<p>\u3068\u3044\u3046\u308f\u3051\u3067\u3001\u307e\u305a\u306fnightly\u30d3\u30eb\u30c9\u306e\u3082\u306e\u3092\u4f7f\u3048\u308b\u3088\u3046\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup <span class=\"nb\">install <\/span>nightly\r\n<\/code><\/pre>\n<p>\u307e\u305f\u3001\u74b0\u5883\u306b\u3082\u3088\u308a\u307e\u3059\u304c\u3001\u30bf\u30fc\u30b2\u30c3\u30c8\u74b0\u5883\u3068\u958b\u767a\u74b0\u5883\u306e\u30a2\u30fc\u30ad\u30c6\u30af\u30c1\u30e3\u304c\u7570\u306a\u308b\u5834\u5408\u3001\u672c\u8a18\u4e8b\u3067\u3044\u3046\u3068i686\u4ee5\u5916\u306e\u74b0\u5883(x86_64\u306a\u3069)\u3067i686\u5411\u3051\u306b\u958b\u767a\u3057\u305f\u3044\u65b9\u306f\u3001i686\u5411\u3051\u306e\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u74b0\u5883\u3092\u69cb\u7bc9\u3059\u308b\u5fc5\u8981\u304c\u3042\u308a\u307e\u3059\u3002\u305f\u3060\u3001rustup\u3092\u4f7f\u3048\u3070\u4e0b\u8a18\u30b3\u30de\u30f3\u30c91\u3064\u3067\u69cb\u7bc9\u3067\u304d\u307e\u3059!<\/p>\n<pre class=\"post-pre\"><code>rustup target add i686-unknown-linux-gnu\r\n<\/code><\/pre>\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4f7f\u7528\u3059\u308bRust\u30b3\u30f3\u30d1\u30a4\u30e9\u3092nightly\u306b\u3059\u308b\u305f\u3081\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>rustup default nightly\r\n<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u3067\u304d\u305f\u3089\u3001\u30b7\u30a7\u30eb\u4e0a\u3067rustc &#8211;version\u3068\u6253\u3063\u3066\u307f\u3066rustc\u304c\u30d0\u30fc\u30b8\u30e7\u30f3\u60c5\u5831\u3092\u51fa\u529b\u3059\u308c\u3070\u3001\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306f\u5b8c\u4e86\u3067\u3059\u3002<\/p>\n<p>\u3082\u3046\u5c11\u3057\u8a73\u7d30\u306a\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u60c5\u5831\u304c\u898b\u305f\u3044\u5834\u5408\u306f\u3001rustup show\u3068\u6253\u3063\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002\u74b0\u5883\u306b\u3088\u308a\u307e\u3059\u304c\u3001\u4e0b\u8a18\u306e\u3088\u3046\u306a\u60c5\u5831\u304c\u51fa\u3066\u304f\u308b\u306f\u305a\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>Default host: x86_64-apple-darwin\r\n\r\ninstalled toolchains\r\n--------------------\r\n\r\nstable-x86_64-apple-darwin\r\nnightly-2016-07-03-x86_64-apple-darwin\r\nnightly-x86_64-apple-darwin (default)\r\n\r\ninstalled targets for active toolchain\r\n--------------------------------------\r\n\r\ni686-unknown-linux-gnu\r\nx86_64-apple-darwin\r\nx86_64-unknown-linux-gnu\r\n\r\nactive toolchain\r\n----------------\r\n\r\nnightly-x86_64-apple-darwin (default)\r\nrustc 1.15.0-nightly (d9bdc636d 2016-11-24)\r\n<\/code><\/pre>\n<h2>NASM\u3001binutils\u3001QEMU\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>Rust\u8a00\u8a9e\u3060\u3051\u3067OS\u304c\u66f8\u3051\u308b\u308f\u3051\u3067\u306f\u306a\u304f\u3001\u7279\u306b\u30d6\u30fc\u30c8\u5468\u308a\u306f\u30a2\u30bb\u30f3\u30d6\u30e9\u304c\u5fc5\u8981\u306b\u306a\u308a\u307e\u3059\u3002\u3055\u3089\u306b\u3001\u3053\u308c\u3089\u30d7\u30ed\u30b0\u30e9\u30e0\u3068Rust\u3067\u66f8\u3044\u305f\u30d7\u30ed\u30b0\u30e9\u30e0\u3092\u30ea\u30f3\u30af\u3059\u308b\u305f\u3081\u306e\u30ea\u30f3\u30ab(ld)\u3084\u30b3\u30f3\u30d1\u30a4\u30e9\u304c\u51fa\u529b\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u3092\u89e3\u6790\u3059\u308b\u305f\u3081\u306eobjdump\u3084readelf\u3068\u3044\u3063\u305f\u30b3\u30de\u30f3\u30c9\u304c\u5fc5\u8981\u3068\u306a\u308a\u307e\u3059\u3002objdump\u3084readelf\u306a\u3069\u306e\u30b3\u30de\u30f3\u30c9\u306f\u3001binutils\u3068\u3044\u3046\u30c4\u30fc\u30eb\u306b\u542b\u307e\u308c\u3066\u3044\u307e\u3059\u3002<\/p>\n<p>\u3053\u308c\u3089\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u3044\u304d\u307e\u3057\u3087\u3046\u3002\u307e\u305a\u306fNASM\u3067\u3059\u3002<\/p>\n<p>\u30a2\u30bb\u30f3\u30d6\u30e9\u3068\u3044\u3048\u3070\u3001\u4ed6\u306b\u3082gas(GNU Assembler)\u3082\u3042\u308a\u307e\u3059\u304c\u3001\u81ea\u5206\u306fintel\u8a18\u6cd5\u306b\u6163\u308c\u89aa\u3057\u3093\u3060\u4eba\u9593\u306a\u306e\u3067\u3001\u3084\u3063\u3071\u308aintel\u8a18\u6cd5\u3067\u66f8\u3051\u308bNASM\u3092\u9078\u629e\u3057\u305f\u304f\u306a\u308a\u307e\u3059\u3002<\/p>\n<p>NASM\u306b\u3064\u3044\u3066\u306f\u30af\u30ed\u30b9\u30b3\u30f3\u30d1\u30a4\u30eb\u306a\u3069\u306f\u8003\u3048\u306a\u304f\u3066\u826f\u3044\u306e\u3067\u3001\u5404OS\u74b0\u5883\u3054\u3068\u306bHomebrew\u3084apt-get\u306a\u3069\u3092\u4f7f\u3063\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002\u53c2\u8003\u307e\u3067\u306b\u3001Homebrew(Mac)\u3068apt-get(Ubuntu\u3001Debian)\u306e\u5834\u5408\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u30b3\u30de\u30f3\u30c9\u3092\u66f8\u3044\u3066\u304a\u304d\u307e\u3059\u3002<\/p>\n<p>Homebrew\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>brew install nasm\r\n<\/code><\/pre>\n<p>apt-get\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>apt-get install nasm\r\n<\/code><\/pre>\n<p>\u6b21\u306bbinutils\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u306b\u3064\u3044\u3066\u3067\u3059\u304c\u3001\u3053\u3061\u3089\u306f\u74b0\u5883\u306b\u3088\u3063\u3066\u306fNASM\u3068\u540c\u3058\u3088\u3046\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u304c\u3001\u3053\u3053\u3067\u306f\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u304b\u3089\u306e\u30d3\u30eb\u30c9\u3092\u884c\u3044\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u306f\u4e0b\u8a18\u304b\u3089\u30bd\u30fc\u30b9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3057\u3087\u3046\u3002<br \/>\nhttp:\/\/ftp.gnu.org\/gnu\/binutils\/<\/p>\n<p>\u30bd\u30fc\u30b9\u3092\u5c55\u958b\u3057\u305f\u3089\u3001\u30bd\u30fc\u30b9\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3078\u79fb\u52d5\u3057\u3066\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30d3\u30eb\u30c9\u3057\u307e\u3059\u3002\u306a\u304a.\/configure\u306e\u969b\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u306b\u3064\u3044\u3066\u306f\u3001i686\u7528\u306e\u30d0\u30a4\u30ca\u30ea\u304c\u6b32\u3057\u3044\u306e\u3067\u3001i686-unknown-linux-gnu\u3092\u6307\u5b9a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<br \/>\n\u203b version 2.27\u306e\u5834\u5408\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">tar <\/span>zxvf binutils-2.27.tar.gz\r\n<span class=\"nb\">cd <\/span>binutils-2.27\r\n.\/configure <span class=\"nt\">--target<\/span><span class=\"o\">=<\/span>i686-unknown-linux-gnu\r\nmake\r\n<span class=\"nb\">sudo <\/span>make <span class=\"nb\">install<\/span>\r\n<\/code><\/pre>\n<p>\u305d\u3057\u3066\u3001\u4f5c\u3063\u305fOS\u3092\u52d5\u304b\u3059\u305f\u3081\u306e\u30a8\u30df\u30e5\u30ec\u30fc\u30bf(QEMU)\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002QEMU\u306fnasm\u3068\u540c\u3058\u304fHomebrew(Mac)\u3068apt-get(Ubuntu\u3001Debian)\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u53ef\u80fd\u3067\u3059\u3002<\/p>\n<p>Homebrew\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>brew install qemu\r\n<\/code><\/pre>\n<p>apt-get\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>apt-get install qemu\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067NASM\u3068binutils\u3001QEMU\u3092\u4f7f\u3048\u308b\u3088\u3046\u306b\u306a\u308a\u307e\u3057\u305f\u3002<\/p>\n<h2>mformat, mcopy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h2>\n<p>\u6700\u5f8c\u306f\u3001\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u6210\u3059\u308b\u305f\u3081\u306b\u4f7f\u3046mformat\u3068mcopy\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3067\u3059\u3002\u3053\u308c\u3089\u306e\u30b3\u30de\u30f3\u30c9\u306fmtools\u3068\u3044\u3046\u30c4\u30fc\u30eb\u7fa4\u306e\u4e2d\u306b\u5165\u3063\u3066\u3044\u308b\u306e\u3067\u3001mtools\u3092\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n<p>Homebrew\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>brew install mtools\r\n<\/code><\/pre>\n<p>apt-get\u306e\u5834\u5408<\/p>\n<pre class=\"post-pre\"><code>apt-get install mtools\r\n<\/code><\/pre>\n<p>\u3053\u308c\u3067\u3001OS\u958b\u767a\u306b\u5fc5\u8981\u306a\u6700\u4f4e\u9650\u306e\u9053\u5177\u306f\u63c3\u3044\u307e\u3057\u305f\u3002<\/p>\n<h1>\u30d3\u30eb\u30c9\u3067\u304d\u308b\u304b\u8a66\u3057\u3066\u307f\u308b<\/h1>\n<h2>\u30d6\u30fc\u30c8\u30ed\u30fc\u30c0\u30fc\u3092\u7528\u610f\u3059\u308b<\/h2>\n<p>\u30d6\u30fc\u30c8\u5468\u308a\u306e\u8a71\u3092\u89e3\u8aac\u3057\u59cb\u3081\u308b\u3068Advent Calendar1\u65e5\u5206\u304b\u305d\u308c\u4ee5\u4e0a\u304b\u304b\u308b\u306e\u3067\u3001\u3053\u3053\u3067\u306f\u30b5\u30af\u30c3\u3068\u65e2\u5b58\u306e\u30a2\u30bb\u30f3\u30d6\u30ea\u30b3\u30fc\u30c9\u3092\u6301\u3063\u3066\u304f\u308b\u3053\u3068\u306b\u3057\u307e\u3059\u3002<\/p>\n<p>\u307e\u305a\u4e0b\u8a182\u3064\u306e\u30b3\u30fc\u30c9\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<p>ipl.asm<br \/>\nsecondboot.asm<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u3053\u308c\u30892\u3064\u306e\u30b3\u30fc\u30c9\u3092\u30a2\u30bb\u30f3\u30d6\u30eb\u3057\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>nasm <span class=\"nt\">-f<\/span> bin <span class=\"nt\">-o<\/span> ipl.bin ipl.asm\r\nnasm <span class=\"nt\">-f<\/span> bin <span class=\"nt\">-o<\/span> secondboot.bin secondboot.asm\r\n<\/code><\/pre>\n<h2>Rust Core Library\u3092\u7528\u610f\u3059\u308b<\/h2>\n<p>\u3055\u3066\u3001\u3053\u3053\u304b\u3089\u306fRust\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u3044\u304f\u3053\u3068\u306b\u306a\u308b\u306e\u3067\u3059\u304c\u3001\u305d\u306e\u524d\u306b\u3001Rust\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u304f\u305f\u3081\u306b\u306fRust\u306e\u57fa\u672c\u7684\u306a\u30c7\u30fc\u30bf\u578b\u306a\u3069\u304c\u5b9a\u7fa9\u3055\u308c\u305fRust Core Library(libcore)\u3068\u3044\u3046\u30e9\u30a4\u30d6\u30e9\u30ea\u304c\u5fc5\u8981\u306a\u306e\u3067\u3001\u5148\u306b\u30d3\u30eb\u30c9\u3057\u3066\u304a\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>\u307e\u305a\u3001Rust\u306e\u30b3\u30fc\u30c9\u4e00\u5f0f\u3092\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u307e\u3059\u3002<br \/>\nhttps:\/\/github.com\/rust-lang\/rust<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3063\u3066\u3001Core\u30e9\u30a4\u30d6\u30e9\u30ea\u306e\u307f\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code>rustc <span class=\"nt\">--verbose<\/span> <span class=\"nt\">--target<\/span><span class=\"o\">=<\/span>i686-unknown-linux-gnu <span class=\"nt\">--crate-type<\/span><span class=\"o\">=<\/span>rlib <span class=\"nt\">--emit<\/span><span class=\"o\">=<\/span><span class=\"nb\">link<\/span>,dep-info <span class=\"nt\">-C<\/span> opt-level<span class=\"o\">=<\/span>2 <span class=\"nt\">-C<\/span> no-prepopulate-passes <span class=\"nt\">-C<\/span> no-stack-check <span class=\"nt\">-Z<\/span> no-landing-pads <span class=\"nt\">-o<\/span> libcore.rlib .\/rust-lang\/src\/libcore\/lib.rs\r\n<\/code><\/pre>\n<p>\u6ce8\u610f\uff1aRust\u306e\u30bd\u30fc\u30b9\u30b3\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3068\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u6e08\u307fRust\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u306b\u3088\u3063\u3066\u306f\u3001\u30b3\u30f3\u30d1\u30a4\u30eb\u306b\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\u305d\u306e\u5834\u5408\u306f\u3001\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3059\u308bRust\u306e\u30b3\u30fc\u30c9\u306e\u30d0\u30fc\u30b8\u30e7\u30f3\u3092\u4e0a\u3052\u308b\u306a\u308a\u4e0b\u3052\u308b\u306a\u308a\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<h2>Rust\u3067\u66f8\u3044\u305fOS\u306e\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3059\u308b<\/h2>\n<p>\u3053\u3053\u307e\u3067\u51fa\u6765\u305f\u3089\u3001\u3044\u3088\u3044\u3088Rust\u306e\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002init_os.rs\u3068\u3044\u3046\u540d\u524d\u3067\u3001\u6b21\u306e\u3088\u3046\u306a\u30b3\u30fc\u30c9\u3092\u66f8\u3044\u3066\u307f\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nd\">#![feature(lang_items)]<\/span>\r\n<span class=\"nd\">#![feature(start)]<\/span>\r\n<span class=\"nd\">#![no_main]<\/span>\r\n<span class=\"nd\">#![feature(no_std)]<\/span>\r\n<span class=\"nd\">#![no_std]<\/span>\r\n<span class=\"nd\">#![feature(asm)]<\/span>\r\n\r\n<span class=\"nd\">#[no_mangle]<\/span>\r\n<span class=\"k\">fn<\/span> <span class=\"nf\">hlt<\/span><span class=\"p\">()<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"k\">unsafe<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"nd\">asm!<\/span><span class=\"p\">(<\/span><span class=\"s\">\"hlt\"<\/span><span class=\"p\">);<\/span>\r\n    <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n\r\n<span class=\"nd\">#[no_mangle]<\/span>\r\n<span class=\"nd\">#[start]<\/span>\r\n<span class=\"k\">pub<\/span> <span class=\"k\">extern<\/span> <span class=\"k\">fn<\/span> <span class=\"nf\">init_os<\/span><span class=\"p\">()<\/span> <span class=\"p\">{<\/span>\r\n    <span class=\"k\">loop<\/span> <span class=\"p\">{<\/span>\r\n        <span class=\"nf\">hlt<\/span><span class=\"p\">()<\/span>\r\n    <span class=\"p\">}<\/span>\r\n<span class=\"p\">}<\/span>\r\n\r\n<span class=\"nd\">#[lang<\/span> <span class=\"nd\">=<\/span> <span class=\"s\">\"eh_personality\"<\/span><span class=\"nd\">]<\/span>\r\n<span class=\"k\">extern<\/span> <span class=\"k\">fn<\/span> <span class=\"nf\">eh_personality<\/span><span class=\"p\">()<\/span> <span class=\"p\">{}<\/span>\r\n\r\n<span class=\"nd\">#[lang<\/span> <span class=\"nd\">=<\/span> <span class=\"s\">\"panic_fmt\"<\/span><span class=\"nd\">]<\/span>\r\n<span class=\"k\">extern<\/span> <span class=\"k\">fn<\/span> <span class=\"nf\">panic_fmt<\/span><span class=\"p\">()<\/span> <span class=\"k\">-&gt;<\/span> <span class=\"o\">!<\/span> <span class=\"p\">{<\/span> <span class=\"k\">loop<\/span> <span class=\"p\">{}<\/span> <span class=\"p\">}<\/span>\r\n<\/code><\/pre>\n<p>\u8a73\u3057\u304f\u89e3\u8aac\u3057\u307e\u305b\u3093\u304c\u3001\u4f55\u3092\u3084\u3063\u3066\u3044\u308b\u304b\u3068\u3044\u3046\u3068\u3001\u5358\u7d14\u306bhlt\u3068\u3044\u3046\u30a2\u30bb\u30f3\u30d6\u30ea\u547d\u4ee4\u3092\u6253\u3061\u7d9a\u3051\u3066\u3044\u308b\u3060\u3051\u3067\u3059\u3002\u306a\u306e\u3067\u3001\u4eee\u306b\u30d3\u30eb\u30c9\u3067\u304d\u305f\u3068\u3057\u3066\u3082\u3001QEMU\u306e\u753b\u9762\u306b\u51fa\u3066\u304f\u308b\u306e\u306f\u771f\u3063\u9ed2\u306a\u753b\u9762\u3067\u3059<\/p>\n<p>\u66f8\u3051\u305f\u3089\u3001\u4e0a\u8a18\u30b3\u30fc\u30c9\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u307e\u3057\u3087\u3046\u3002<\/p>\n<pre class=\"post-pre\"><code>rustc <span class=\"nt\">--target<\/span><span class=\"o\">=<\/span>i686-unknown-linux-gnu <span class=\"nt\">--crate-type<\/span><span class=\"o\">=<\/span>staticlib <span class=\"nt\">--emit<\/span><span class=\"o\">=<\/span>obj <span class=\"nt\">-C<\/span> lto <span class=\"nt\">-C<\/span> opt-level<span class=\"o\">=<\/span>2 <span class=\"nt\">-C<\/span> no-prepopulate-passes <span class=\"nt\">-C<\/span> no-stack-check <span class=\"nt\">-Z<\/span> verbose <span class=\"nt\">-Z<\/span> no-landing-pads <span class=\"nt\">-o<\/span> init_os.o init_os.rs <span class=\"nt\">--extern<\/span> <span class=\"nv\">core<\/span><span class=\"o\">=<\/span>libcore.rlib\r\n<\/code><\/pre>\n<h2>\u30ea\u30f3\u30af\u30fbOS\u30a4\u30e1\u30fc\u30b8\u4f5c\u6210<\/h2>\n<p>\u3055\u3066\u3001\u3042\u3068\u306f\u30ea\u30f3\u30af\u3057\u3066OS\u306e\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308b\u3060\u3051\u3067\u3059\u3002<\/p>\n<p>\u307e\u305a\u3053\u3053\u307e\u3067\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u3066\u4f5c\u6210\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u4e00\u5f0f\u3092\u30ea\u30f3\u30af\u3057\u307e\u3057\u3087\u3046\u30fb\u30fb\u30fb\u3068\u8a00\u3063\u3066\u3082\u3001\u5b9f\u306finit_os.rs\u3092\u30b3\u30f3\u30d1\u30a4\u30eb\u3057\u305f\u969b\u306b\u65e2\u306blibcore\u3092\u30ea\u30f3\u30af\u3057\u3066\u3044\u308b\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u5358\u7d14\u306b\u30ea\u30f3\u30ab\u30b9\u30af\u30ea\u30d7\u30c8\u3067\u5b9a\u7fa9\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u5f62\u5f0f\u306b\u5909\u63db\u3057\u3066\u3044\u308b\u3060\u3051\u3068\u3044\u3046\u611f\u3058\u3067\u3059\u3002<\/p>\n<p>\u30ea\u30f3\u30ab\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u3082\u3001\u5965\u304c\u6df1\u3044\u305f\u3081\u3001\u3053\u3053\u3067\u306f\u8a73\u3057\u304f\u89e3\u8aac\u305b\u305a\u3001\u65e2\u5b58\u306e\u30ea\u30f3\u30ab\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u6301\u3063\u3066\u304d\u307e\u3057\u3087\u3046\u3002<\/p>\n<p>kernel.ld<br \/>\n\u203b \u3082\u3057\u30ea\u30f3\u30ab\u3084\u30ea\u30f3\u30ab\u30b9\u30af\u30ea\u30d7\u30c8\u306b\u3064\u3044\u3066\u8a73\u3057\u304f\u77e5\u308a\u305f\u3044\u65b9\u304c\u3044\u308c\u3070\u3001\u300c\u30ea\u30f3\u30ab\u30fb\u30ed\u30fc\u30c0\u5b9f\u8df5\u958b\u767a\u30c6\u30af\u30cb\u30c3\u30af\u300d\u3068\u3044\u3046\u672c\u3092\u8aad\u3080\u3068\u826f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n<p>\u30c0\u30a6\u30f3\u30ed\u30fc\u30c9\u3067\u304d\u305f\u3089\u3001\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3067\u30ea\u30f3\u30af\u3092\u884c\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>i686-unknown-linux-gnu-ld <span class=\"nt\">-v<\/span> <span class=\"nt\">-nostdlib<\/span> <span class=\"nt\">-Tdata<\/span><span class=\"o\">=<\/span>0x00310000 init_os.o <span class=\"nt\">-T<\/span> kernel.ld <span class=\"nt\">-o<\/span> kernel.bin\r\n<\/code><\/pre>\n<p>\u6b21\u306b\u3001\u6700\u521d\u306b\u30a2\u30bb\u30f3\u30d6\u30eb\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u3046\u3061\u3001secondboot.bin\u3092\u4eca\u30ea\u30f3\u30af\u3057\u305fkernel.bin\u306e\u524d\u306b\u304f\u3063\u3064\u3051\u307e\u3059\u3002\u304f\u3063\u3064\u3051\u308b\u306b\u306f\u4e0b\u8a18\u30b3\u30de\u30f3\u30c9\u3092\u4f7f\u3044\u307e\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code><span class=\"nb\">cat <\/span>secondboot.bin kernel.bin <span class=\"o\">&gt;<\/span> first_os.sys\r\n<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u304f\u308c\u3070\u3001\u3042\u3068\u4e00\u606f\u3067\u3059\u3002\u6700\u5f8c\u306f\u3001\u6700\u521d\u306b\u30a2\u30bb\u30f3\u30d6\u30eb\u3057\u305f\u30aa\u30d6\u30b8\u30a7\u30af\u30c8\u30d5\u30a1\u30a4\u30eb\u306e\u3046\u3061ipl.bin\u3068first_os.sys\u3092\u7528\u3044\u3066\u3001\u30d5\u30ed\u30c3\u30d4\u30fc\u30c7\u30a3\u30b9\u30af\u30a4\u30e1\u30fc\u30b8\u3092\u4f5c\u308a\u307e\u3059\u3002<br \/>\n\u203b \u300c\u4eca\u6642\u30d5\u30ed\u30c3\u30d4\u30fc\u30a4\u30e1\u30fc\u30b8\u304b\u3088\u30fb\u30fb\u30fb\u300d\u3068\u304b\u3001\u300c\u30d5\u30ed\u30c3\u30d4\u30fc\u30c7\u30a3\u30b9\u30af\u3063\u3066\u4f55\uff1f\u300d\u3068\u3044\u3046\u6307\u6458\u306f\u3054\u3082\u3063\u3068\u3082\u3067\u3059\u3002\u3002\u3053\u306e\u8fba\u3082\u4eca\u5f8ciso\u30a4\u30e1\u30fc\u30b8\u3068\u304b\u306b\u5bfe\u5fdc\u3057\u3066\u3044\u304d\u305f\u3044\u3067\u3059\u3002<\/p>\n<pre class=\"post-pre\"><code>mformat <span class=\"nt\">-f<\/span> 1440 <span class=\"nt\">-C<\/span> <span class=\"nt\">-B<\/span> ipl.bin <span class=\"nt\">-i<\/span> first_os.img ::\r\nmcopy <span class=\"nt\">-i<\/span> first_os.img first_os.sys ::\r\n<\/code><\/pre>\n<p>\u3053\u3053\u307e\u3067\u51fa\u6765\u308c\u3070\u3001OS\u306e\u30d3\u30eb\u30c9\u306f\u5927\u6210\u529f\u3067\u3059\uff01<\/p>\n<p>\u305b\u3063\u304b\u304f\u306a\u306e\u3067\u3001QEMU\u3067\u52d5\u304b\u3057\u3066\u307f\u307e\u3057\u3087\u3046\u304b\u3002<\/p>\n<pre class=\"post-pre\"><code>qemu-system-i386 <span class=\"nt\">-m<\/span> 32 <span class=\"nt\">-localtime<\/span> <span class=\"nt\">-vga<\/span> std <span class=\"nt\">-fda<\/span> first_os.img <span class=\"nt\">-monitor<\/span> stdio\r\n<\/code><\/pre>\n<p>\u203b QEMU\u3060\u3051\u3001i386\u306a\u306e\u3067\u6ce8\u610f\u3002<\/p>\n<p>\u4e0b\u306e\u3088\u3046\u306a\u771f\u3063\u9ed2\u306aQEMU\u306e\u753b\u9762\u304c\u51fa\u3066\u304f\u308c\u3070\u3001(\u5168\u304f\u898b\u6804\u3048\u306f\u826f\u304f\u306a\u3044\u3067\u3059\u304c)\u5927\u6210\u529f\u3067\u3059\uff01<\/p>\n<div><img decoding=\"async\" class=\"post-images\" title=\"\" src=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5d9c37434c4406cf2153\/91-0.png\" alt=\"\u30b9\u30af\u30ea\u30fc\u30f3\u30b7\u30e7\u30c3\u30c8 2016-12-16 1.01.36.png\" \/><\/div>\n<h1>\u3042\u3068\u304c\u304d<\/h1>\n<p>\u306a\u308b\u3079\u304f\u3001OS\u81ea\u4f5c\u306b\u8208\u5473\u304c\u3042\u308a\u3001\u304b\u3064Rust\u3092\u4f7f\u3046\u65b9\u3092\u5ff5\u982d\u306b\u7f6e\u3044\u3066\u66f8\u3044\u3066\u307f\u307e\u3057\u305f\u3002\u5c11\u3057\u3067\u3082\u304a\u5f79\u306b\u7acb\u3066\u305f\u3089\u5e78\u3044\u3067\u3059\u3002<\/p>\n<p>\u306a\u304a\u3001\u4e0a\u8a18\u74b0\u5883\u69cb\u7bc9\u624b\u9806\u3092Dockerfile\u306b\u307e\u3068\u3081\u305f\u3082\u306e\u304c\u3042\u308b\u306e\u3067\u3001\u3088\u304b\u3063\u305f\u3089\u3069\u3046\u305e\u3002<br \/>\nhttps:\/\/github.com\/kotetuco\/rust-baremetal<\/p>\n<p>\u672c\u5f53\u306fRust\u3067OS\u3092\u4f5c\u308b\u5229\u70b9\u306b\u3064\u3044\u3066\u8a71\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3057\u305f\u304c\u3001\u5229\u70b9\u3092\u8a71\u305b\u308b\u307b\u3069Rust\u306b\u89e6\u308c\u3066\u308b\u308f\u3051\u3067\u306f\u306a\u3044\u306e\u3067\u3001\u307e\u305f\u306e\u6a5f\u4f1a\u306b\u8a71\u3092\u3057\u305f\u3044\u3068\u601d\u3044\u307e\u3059\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u672c\u8a18\u4e8b\u306f\u81ea\u4f5cOS Advent Calendar 2016 16\u65e5\u76ee\u306e \u8a18\u4e8b\u3067\u3059\u3002 \u306f\u3058\u3081\u306b \u5927\u5b66\u306b\u5165\u3063\u305f\u9803\u304b [&hellip;]<\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-45220","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v21.5 (Yoast SEO v21.5) - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>- Blog - Silicon Cloud<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:description\" content=\"\u672c\u8a18\u4e8b\u306f\u81ea\u4f5cOS Advent Calendar 2016 16\u65e5\u76ee\u306e \u8a18\u4e8b\u3067\u3059\u3002 \u306f\u3058\u3081\u306b \u5927\u5b66\u306b\u5165\u3063\u305f\u9803\u304b [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/\" \/>\n<meta property=\"og:site_name\" content=\"Blog - Silicon Cloud\" \/>\n<meta property=\"article:published_time\" content=\"2023-10-01T19:25:08+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2024-04-28T22:15:19+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5d9c37434c4406cf2153\/91-0.png\" \/>\n<meta name=\"author\" content=\"\u96c5, \u609f\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"\u96c5, \u609f\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/\",\"name\":\"- Blog - Silicon Cloud\",\"isPartOf\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\"},\"datePublished\":\"2023-10-01T19:25:08+00:00\",\"dateModified\":\"2024-04-28T22:15:19+00:00\",\"author\":{\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/\"]}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#website\",\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/\",\"name\":\"Blog - Silicon Cloud\",\"description\":\"\",\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6\",\"name\":\"\u96c5, \u609f\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g\",\"caption\":\"\u96c5, \u609f\"},\"url\":\"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/\"},{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/#local-main-organization-logo\",\"url\":\"\",\"contentUrl\":\"\",\"caption\":\"Blog - Silicon Cloud\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"- Blog - Silicon Cloud","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/","og_locale":"zh_CN","og_type":"article","og_description":"\u672c\u8a18\u4e8b\u306f\u81ea\u4f5cOS Advent Calendar 2016 16\u65e5\u76ee\u306e \u8a18\u4e8b\u3067\u3059\u3002 \u306f\u3058\u3081\u306b \u5927\u5b66\u306b\u5165\u3063\u305f\u9803\u304b [&hellip;]","og_url":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/","og_site_name":"Blog - Silicon Cloud","article_published_time":"2023-10-01T19:25:08+00:00","article_modified_time":"2024-04-28T22:15:19+00:00","og_image":[{"url":"https:\/\/cdn.silicloud.com\/blog-img\/blog\/img\/657d5d9c37434c4406cf2153\/91-0.png"}],"author":"\u96c5, \u609f","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"\u96c5, \u609f","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/","url":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/","name":"- Blog - Silicon Cloud","isPartOf":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website"},"datePublished":"2023-10-01T19:25:08+00:00","dateModified":"2024-04-28T22:15:19+00:00","author":{"@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/"]}]},{"@type":"WebSite","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#website","url":"https:\/\/www.silicloud.com\/zh\/blog\/","name":"Blog - Silicon Cloud","description":"","inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/f044a4b7fa4ee2701702942002419ca6","name":"\u96c5, \u609f","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/e71a913e914f1aad1efc391f92084294bac54bc782acd289638580134cf667a6?s=96&d=mm&r=g","caption":"\u96c5, \u609f"},"url":"https:\/\/www.silicloud.com\/zh\/blog\/author\/yawu\/"},{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.silicloud.com\/zh\/blog\/45220-2\/#local-main-organization-logo","url":"","contentUrl":"","caption":"Blog - Silicon Cloud"}]}},"_links":{"self":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45220","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/comments?post=45220"}],"version-history":[{"count":2,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45220\/revisions"}],"predecessor-version":[{"id":83545,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/posts\/45220\/revisions\/83545"}],"wp:attachment":[{"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/media?parent=45220"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/categories?post=45220"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.silicloud.com\/zh\/blog\/wp-json\/wp\/v2\/tags?post=45220"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}