{"id":210278,"date":"2020-11-27T09:30:28","date_gmt":"2020-11-27T01:30:28","guid":{"rendered":"http:\/\/4563.org\/?p=210278"},"modified":"2020-11-27T09:30:28","modified_gmt":"2020-11-27T01:30:28","slug":"apple-silicon-%e7%9a%84-rosetta-2-%e4%bd%bf%e7%94%a8%e4%ba%86%e7%89%b9%e6%ae%8a%e7%9a%84%e7%a1%ac%e4%bb%b6%e6%8c%87%e4%bb%a4","status":"publish","type":"post","link":"http:\/\/4563.org\/?p=210278","title":{"rendered":"Apple Silicon \u7684 Rosetta 2 \u4f7f\u7528\u4e86\u7279\u6b8a\u7684\u786c\u4ef6\u6307\u4ee4"},"content":{"rendered":"<div>\n<div>\n<div>\n<h1>                  Apple Silicon \u7684 Rosetta 2 \u4f7f\u7528\u4e86\u7279\u6b8a\u7684\u786c\u4ef6\u6307\u4ee4               <\/h1>\n<p> <\/p>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : icyalala <\/span>  <span><i><\/i> 3<\/span> <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<\/p><\/div>\n<div isfirst=\"1\"> <\/p>\n<p>x86 \u4f7f\u7528\u7684\u662f TSO (Total Store Ordering), \u800c ARM \u662f weak memory ordering \u3002<\/p>\n<p>\u82f9\u679c\u5728 Apple Silicon (M1\/A12Z)\u4e2d\u5185\u7f6e\u4e86\u4e00\u4e2a\u72b6\u6001\u5bc4\u5b58\u5668\u6765\u6a21\u62df TSO\uff0c\u8fd9\u4e2a\u64cd\u4f5c\u662f per-thread \u7684\uff0c\u4e14\u53ea\u80fd\u8fd0\u884c\u5728\u5927\u6838\u4e0a\u3002<\/p>\n<p>\u8fd9\u662f\u4ee3\u7801\uff1a https:\/\/github.com\/saagarjha\/TSOEnabler<\/p>\n<p>\u8fd9\u662f\u6700\u8fd1\u7684\u8ba8\u8bba\uff1a https:\/\/www.reddit.com\/r\/hardware\/comments\/i0mido\/apple_silicon_has_a_runtime_toggle_for_tso_to\/<\/p>\n<p>\u8fd9\u662f\u51e0\u4e2a\u6708\u524d\u7684\u8ba8\u8bba\uff1a https:\/\/www.realworldtech.com\/forum\/?threadid=193883&amp;curpostid=193883<\/p>\n<\/p><\/div>\n<div> <b>\u5927\u4f6c\u6709\u8a71\u8aaa<\/b> (<span>12<\/span>)        <\/div>\n<div> <\/div>\n<\/p><\/div>\n<\/p><\/div>\n<ul>\n<li data-pid=\"4361345\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : leewi9coder <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ea\u8981\u5feb\u5c31\u884c\u4e86\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361346\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : szq98 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             a12z \u4e2d\u5c31\u6709\u76f8\u5173\u786c\u4ef6\u4e86\uff0c\u90a3\u8bf4\u660e 2018 \u5e74 a12x \u7684\u8bbe\u8ba1\u5c31\u8003\u8651\u5230\u4e86 Rosetta<br \/>\u53e6\u5916\uff0cm1 \u597d\u50cf\u53ef\u4ee5\u7528\u5c0f\u6838\u6a21\u62df\uff0c\u5f88\u591a Rosetta \u540e\u8dd1\u5206\u7684\u591a\u6838\u500d\u7387\u90fd\u8d85\u8fc7\u4e86 4                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361347\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : lly0514 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u53ef\u80fd\u8fd9\u5c31\u662f M1 \u4eff\u771f X86 \u901f\u5ea6\u5feb\u7684\u539f\u56e0\uff0c\u6240\u4ee5 iPad \u7684 A \u7cfb\u5217\u82af\u7247\u88c5 MacOS\uff0cRosetta \u53ef\u80fd\u4f1a\u62c9\u80ef\u3002\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361348\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : CommandZi <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e13\u7528\u82af\u7247\u5b9e\u9524\u4e86                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361349\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : Tink <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u6ca1\u6bdb\u75c5\uff0c\u5929\u4e0b\u6b66\u529f\u552f\u5feb\u4e0d\u7834                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361350\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : jry <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4f60\u5c31\u8bf4\u5feb\u4e0d\u5feb\u5427                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361351\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 20015jjw <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u633a\u597d<br \/>\u610f\u601d\u662f\u505a\u4e86\u4e2a x86 \u8fd8\u6bd4 x86 \u7701\u7535 \/\u5feb\u54af                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361352\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : maemolee <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u4e48\u4e00\u8bf4\uff0c\u611f\u89c9\u82f9\u679c\u771f\u7684\u725b\u903c\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361353\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : longaiwp <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u8fd9\u90fd\u80fd\u62ff\u51fa\u6765\u5439\u5618\u4e00\u628a\uff0c\u670d\u4e86\u3002                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361354\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : 12101111 <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u4e0d\u662f,\u524d\u9762\u51e0\u5c31\u5f3a\u884c\u5c2c\u5439? \u5f31\u5185\u5b58\u5e8f\u672c\u8eab\u5c31\u80fd\u8ba9\u82af\u7247\u66f4\u5feb,\u56e0\u4e3a\u4e0d\u9700\u8981\u52a0\u989d\u5916\u7684\u7535\u8def\u6765\u540c\u6b65\u7f13\u5b58\u4e86,x86 \u7528\u5f3a\u5185\u5b58\u5e8f\u662f\u56e0\u4e3a\u6709 x86 \u7684\u65f6\u5019\u8fd8\u6ca1\u6709 SMP \u5462,\u751a\u81f3 L2 \u7f13\u5b58\u90fd\u662f\u5916\u7f6e\u7684\u82af\u7247, \u5f3a\u5185\u5b58\u5e8f\u9664\u4e86\u8ba9\u6709 bug \u7684\u7a0b\u5e8f\u4e5f\u80fd\u8dd1\u4ee5\u5916\u6ca1\u6709\u4ec0\u4e48\u4f18\u70b9<\/p>\n<p>\u6709\u5173 WMO \u548c TSO \u7684\u533a\u522b\u53ef\u4ee5\u770b https:\/\/zhuanlan.zhihu.com\/p\/142658824                                                            <\/p><\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361355\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : f6x <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u65e0\u60c5~~~ \u65e0\u60c5\u5632\u8bbd\u7259\u818f\u5382<br \/>apple \u8fd9\u4e48\u9b54\u6539, \u8981\u5f04\u6210 x86 \u8d85\u96c6\u4e48?                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li data-pid=\"4361356\" data-uid=\"2\">\n<div>\n<div>\n<div> <span>\u8cc7\u6df1\u5927\u4f6c : akring <\/span>  <\/div>\n<div> <i title=\"\u5f15\u7528\"><\/i>  <span>          <\/span> <\/div>\n<\/p><\/div>\n<div>                                                             \u611f\u89c9\u82f9\u679c\u8fd9\u6b21\u53d1\u5e03\u6380\u8d77\u4e86\u4e00\u6ce2 arm \u5b66\u4e60\u7684\u9ad8\u6f6e\u554a                                                            <\/div>\n<\/p><\/div>\n<\/li>\n<li>\n","protected":false},"excerpt":{"rendered":"<p>Apple Silicon \u7684 R&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[],"tags":[],"_links":{"self":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210278"}],"collection":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=210278"}],"version-history":[{"count":0,"href":"http:\/\/4563.org\/index.php?rest_route=\/wp\/v2\/posts\/210278\/revisions"}],"wp:attachment":[{"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=210278"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=210278"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/4563.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=210278"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}