{"id":1509,"date":"2024-04-10T04:07:39","date_gmt":"2024-04-09T20:07:39","guid":{"rendered":"https:\/\/wp.minicoda.com\/?p=1509"},"modified":"2024-04-10T04:07:59","modified_gmt":"2024-04-09T20:07:59","slug":"clang-gcc-msvc%e7%bc%96%e8%af%91%e9%80%89%e9%a1%b9%e5%af%b9%e6%af%94","status":"publish","type":"post","link":"https:\/\/wp.minicoda.com\/index.php\/clang-gcc-msvc%e7%bc%96%e8%af%91%e9%80%89%e9%a1%b9%e5%af%b9%e6%af%94\/","title":{"rendered":"Clang\/GCC\/MSVC\u7f16\u8bd1\u5668\u5bf9\u6bd4"},"content":{"rendered":"\n<ul class=\"wp-block-list\">\n<li>\u7f16\u8bd1\u9009\u9879\uff1aClang \u548c GCC\u5728\u5f88\u591a\u7f16\u8bd1\u9009\u9879\u4e0a\u662f\u76f8\u4f3c\u7684\uff0c\u56e0\u4e3a Clang \u65e8\u5728\u4e0e GCC \u517c\u5bb9\u3002MSVC\u7684\u9009\u9879\u4e00\u822c\u4ee5\/\u5f00\u5934 \uff0c\u548c\u666e\u901aDOS\u547d\u4ee4\u9009\u9879\u7c7b\u4f3c\uff0cclang\u548cgcc\u6309\u7167Unix\u547d\u4ee4\u9009\u9879-\u6216\u8005--\u5f00\u5934\u3002<\/li>\n\n\n\n<li>\u8de8\u5e73\u53f0\uff1aClang\u548cGCC\u662f\u8de8\u5e73\u53f0\u7684\uff0c\u53ef\u4ee5\u5728\u591a\u79cd\u64cd\u4f5c\u7cfb\u7edf\u4e0a\u4f7f\u7528\uff0c\u5305\u62ecLinux\u3001macOS\u548cWindows\u7b49\u3002MSVC\u53ea\u7528\u4e8eWindows\u5e73\u53f0\u3002Clang\u548cGCC\u517c\u5bb9\u6027\u5f88\u597d\uff0cMakefile\u79fb\u690d\u5fc3\u667a\u8d1f\u62c5\u5c0f\uff0c\u5230Windows\u5e73\u53f0\u5c31\u9700\u8981\u6ce8\u610f\u9009\u9879\u5dee\u5f02\u3002<\/li>\n\n\n\n<li>\u8bed\u8a00\u6807\u51c6\u652f\u6301\uff1aMSVC\u8f83\u65b0\u7248\u672c\u624d\u5bf9C99\u6709\u8f83\u5b8c\u6574\u652f\u6301\uff0c\u5bf9C11\/C17\u652f\u6301\u4e0d\u662f\u5f88\u597d\uff0cVS2022\u9ed8\u8ba4\u4f9d\u7136\u4e3b\u8981\u662fC90(\u989d\u5916\u9644\u5e26\u4e00\u4e9bC99 feature\u548cMSVC\u7279\u6027). Clang\u548cGCC\u652f\u6301\u5c31\u66f4\u597d\u4e00\u4e9b\uff0c\u6700\u65b0\u7248\u672c\u652f\u6301\u66f4\u65b0\u7684C\u6807\u51c6\u3002MSVC\u5bf9C++\u6807\u51c6\u652f\u6301\u6bd4Clang\u548cGCC\u90fd\u5feb\uff0c\u5bf9C++20\u652f\u6301\u66f4\u597d\u3002<\/li>\n\n\n\n<li>\u9519\u8bef\u63d0\u793a\uff1aClang\u5728\u9519\u8bef\u4fe1\u606f\u548c\u8b66\u544a\u65b9\u9762\u505a\u5f97\u5f88\u597d\uff0c\u80fd\u591f\u63d0\u4f9b\u66f4\u6e05\u6670\u3001\u66f4\u7cbe\u786e\u7684\u9519\u8bef\u63d0\u793a\u3002<\/li>\n\n\n\n<li>\u652f\u6301\u8bed\u8a00\uff1aGCC\u652f\u6301\u7684\u8bed\u8a00\u6700\u591a\uff0c\u56e0\u4e3a\u5b83\u5df2\u7ecf\u53d8\u6210\u524d\u7aef\u4e86\uff0c\u9664\u4e86C\/C++\/Obj C\/C++\u8bed\u8a00\uff0cFortran\u3001Ada\u7b49\u90fd\u5728\u652f\u6301\u4e4b\u5217\uff0c\u65e9\u671f\u4e5f\u652f\u6301Java\uff0c\u540e\u6765\u9010\u6e10Phase out.<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[299],"tags":[],"class_list":["post-1509","post","type-post","status-publish","format-standard","hentry","category-think"],"views":756,"_links":{"self":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/1509","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/comments?post=1509"}],"version-history":[{"count":2,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/1509\/revisions"}],"predecessor-version":[{"id":1511,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/posts\/1509\/revisions\/1511"}],"wp:attachment":[{"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/media?parent=1509"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/categories?post=1509"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/wp.minicoda.com\/index.php\/wp-json\/wp\/v2\/tags?post=1509"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}