{"id":1526,"date":"2023-12-25T21:38:04","date_gmt":"2023-12-25T13:38:04","guid":{"rendered":"https:\/\/lyvba.com\/?p=1526"},"modified":"2023-12-25T21:38:04","modified_gmt":"2023-12-25T13:38:04","slug":"code-server-riscv-gcc","status":"publish","type":"post","link":"https:\/\/lyvba.com\/index.php\/2023\/12\/25\/code-server-riscv-gcc\/","title":{"rendered":"\u4f7f\u7528code-server\u5bb9\u5668  \u5b66\u4e60Risc-V GCC \u4ea4\u53c9\u7f16\u8bd1"},"content":{"rendered":"<h2>\u6e20\u6210\u5f00\u6e90\u793e <a href=\"https:\/\/www.qucheng.cc\/app\/code-server.html\"><code>Demo\u4e2d\u5fc3-code-server<\/code><\/a><\/h2>\n<ul>\n<li><a href=\"https:\/\/www.qucheng.cc\/app\/code-server.html\">https:\/\/www.qucheng.cc\/app\/code-server.html<\/a><\/li>\n<\/ul>\n<h3>\u5feb\u901f\u90e8\u7f72\u547d\u4ee4<\/h3>\n<pre><code>git clone https:\/\/github.com\/hongwenjun\/qucheng.git\nsource .\/qucheng\/install.sh<\/code><\/pre>\n<h2>\u5173\u4e8e\u6e20\u6210<\/h2>\n<details>\n<summary>\u70b9\u51fb\u5c55\u5f00\u5185\u5bb9<\/summary>\n<p>### \u6e20\u6210\u5f00\u6e90\u793e\u533a\u4ecb\u7ecd<\/p>\n<p>\u6e20\u6210\u5f00\u6e90\u793e\u533a\u7531\u7985\u9053\u9879\u76ee\u7ba1\u7406\u8f6f\u4ef6\u56e2\u961f\u53d1\u8d77\uff0c\u793e\u533a\u7684\u7ecf\u8425\u4e3b\u4f53\u4e3a\u9752\u5c9b\u6e20\u6210\u5f00\u6e90\u8ba1\u7b97\u673a\u7f51\u7edc\u6280\u672f\u7814\u7a76\u4e2d\u5fc3\uff0c\u662f\u4ece\u4e8b\u975e\u8425\u5229\u6027\u793e\u4f1a\u670d\u52a1\u6d3b\u52a8\u7684\u793e\u4f1a\u7ec4\u7ec7\u3002<\/p>\n<p>\u6e20\u6210\u5f00\u6e90\u793e\u533a\u4e3b\u8981\u9762\u5411\u4e00\u7ebf\u5f00\u6e90\u8f6f\u4ef6\u751f\u4ea7\u8005\u3001\u8d21\u732e\u8005\u3001\u7ec4\u7ec7\u8005\u3001\u8d5e\u52a9\u5546\u548c\u7528\u6237\uff0c\u4ee5\u89e3\u51b3\u5177\u4f53\u5b9e\u9645\u95ee\u9898\u4e3a\u5b97\u65e8\uff0c\u65e8\u5728\u6253\u9020\u4ee5\u5f00\u6e90\u8f6f\u4ef6\u4e3a\u6838\u5fc3\u7ebd\u5e26\u7684\u5f00\u6e90\u751f\u6001\u7cfb\u7edf\uff0c\u771f\u6b63\u505a\u5230\u8ba9\u6bcf\u4e00\u4e2a\u4f18\u79c0\u7684\u5f00\u6e90\u8f6f\u4ef6\u90fd\u80fd\u5b9e\u73b0\u5546\u4e1a\u5316\u3002<\/p>\n<p>### \u4e3a\u4ec0\u4e48\u6765\u505a\u6e20\u6210\u5f00\u6e90\u793e\u533a\uff1f<\/p>\n<p>\u5f00\u6e90\u8f6f\u4ef6\u73b0\u5df2\u4e0a\u5347\u5230\u56fd\u5bb6\u6218\u7565\u9ad8\u5ea6\uff0c\u8fd1\u671f\u5f00\u6e90\u653f\u7b56\u5bc6\u96c6\u51fa\u53f0\uff0c\u56fd\u5bb6\u5c42\u9762\u4e5f\u9646\u7eed\u6210\u7acb\u4e86\u76f8\u5e94\u7684\u57fa\u91d1\u4f1a\u3001\u6307\u5bfc\u5355\u4f4d\u548c\u793e\u533a\u7ec4\u7ec7\uff0c\u52a9\u529b\u5f00\u6e90\u751f\u6001\u53d1\u5c55\u3002\u56fd\u5185\u4e5f\u5b58\u5728\u7740\u4e0d\u5c11\u4f18\u79c0\u7684\u5f00\u6e90\u793e\u533a\uff0c\u8fd9\u4e9b\u793e\u533a\u76ee\u524d\u66f4\u4fa7\u91cd\u4e8e\u5f00\u6e90\u6cbb\u7406\u3001\u5ba3\u4f20\u548c\u57fa\u91d1\u4f1a\u76f8\u5173\u7684\u65b9\u5411\uff0c\u73b0\u4eca\u9700\u6253\u9020\u66f4\u843d\u5730\u66f4\u9002\u5408\u56fd\u60c5\u7684\u5f00\u6e90\u8f6f\u4ef6\u751f\u6001\u3002<\/p>\n<p>\u6e20\u6210\u5f00\u6e90\u793e\u533a\u5c06\u94fe\u63a5\u73b0\u6709\u5f00\u6e90\u793e\u533a\uff0c\u901a\u8fc7\u5177\u4f53\u4e14\u843d\u5730\u53ef\u884c\u7684\u65b9\u6848\u5e2e\u52a9\u4f17\u591a\u5f00\u6e90\u53c2\u4e0e\u8005\u89e3\u51b3\u95ee\u9898\uff0c\u7ed9\u5927\u5bb6\u5e26\u6765\u66f4\u597d\u7684\u5f00\u6e90\u670d\u52a1\u3002\u4e5f\u5e0c\u671b\u901a\u8fc7\u6e20\u6210\u5f00\u6e90\u793e\u533a\u7684\u52aa\u529b\u4e3a\u4e2d\u56fd\u7684\u5f00\u6e90\u8f6f\u4ef6\u4e8b\u4e1a\u505a\u4e00\u4e9b\u8e0f\u8e0f\u5b9e\u5b9e\u7684\u8d21\u732e\u3002<\/p>\n<p>### \u6e20\u6210\u5f00\u6e90\u793e\u533a\u8981\u505a\u7684\u4e8b\u60c5<\/p>\n<p>\u6e20\u6210\u5f00\u6e90\u793e\u533a\u4ee5\u89e3\u51b3\u5f00\u6e90\u5b9e\u9645\u95ee\u9898\u4e3a\u5b97\u65e8\uff0c\u6253\u9020\u4ee5\u5f00\u6e90\u8f6f\u4ef6\u4e3a\u6838\u5fc3\u7684\u5f00\u6e90\u751f\u6001\u7cfb\u7edf\u3002\u793e\u533a\u4f1a\u56f4\u7ed5\u4ee3\u7801\u5de5\u7a0b\u4fa7\u3001\u7ecf\u8425\u6a21\u5f0f\u4fa7\u548c\u793e\u533a\u6d3b\u52a8\u4fa7\u8fd9\u4e09\u7c7b\u4e8b\u60c5\u5c55\u5f00\uff1a<\/p>\n<p>- \u5e2e\u52a9\u5f00\u6e90\u8f6f\u4ef6\u793e\u533a\u628a\u9879\u76ee\u505a\u5f97\u66f4\u597d\uff1a\u652f\u6301\u5f00\u6e90\u4efb\u52a1\u60ac\u8d4f\uff0c\u5305\u542b\u5f00\u6e90\u6587\u6863\u3001\u5f00\u6e90Bug\u3001\u5f00\u6e90\u6781\u5ba2\u8425\u3001\u5f00\u6e90\u6d4b\u8bd5\u3001\u4ea7\u54c1\u8bbe\u8ba1\u3001UI\u8bbe\u8ba1\u7b49\u7b49\u3002<br \/>\n- \u5e2e\u52a9\u5f00\u6e90\u8f6f\u4ef6\u793e\u533a\u628a\u9879\u76ee\u7ecf\u8425\u5f97\u66f4\u597d\uff1a\u56f4\u7ed5\u5982\u4f55\u4ee5\u5f00\u6e90\u8f6f\u4ef6\u5efa\u7acb\u81ea\u5df1\u7684\u7ecf\u8425\u6a21\u5f0f\u63d0\u4f9b\u6587\u7ae0\u3001\u89c6\u9891\u3001\u6c99\u9f99\u3001\u57f9\u8bad\u7b49\u4e00\u7cfb\u5217\u7684\u5185\u5bb9\u3002<br \/>\n- \u5145\u5206\u94fe\u63a5\u5f00\u6e90\u751f\u6001\u4e2d\u7684\u5404\u79cd\u89d2\u8272\uff1a\u901a\u8fc7\u5404\u79cd\u793e\u533a\u529f\u80fd\u3001\u7ebf\u4e0a\u7ebf\u4e0b\u7684\u6d3b\u52a8\u5efa\u7acb\u5404\u89d2\u8272\u7684\u5145\u5206\u94fe\u63a5\u3002<\/p>\n<\/details>\n<h2>\u4f7f\u7528 \u6e20\u6210\u5f00\u6e90\u793e\u533a <code>Demo\u4e2d\u5fc3<\/code> \u4e4b <code>code-server<\/code> \u5b66\u4e60 <code>Risc-V<\/code> GCC \u4ea4\u53c9\u7f16\u8bd1<\/h2>\n<h3>1. \u4e0b\u8f7d wget \u548c make \u5de5\u5177\uff0c\u548c\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/h3>\n<pre><code>git clone https:\/\/github.com\/hongwenjun\/qucheng.git<\/code><\/pre>\n<ul>\n<li>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf\n<pre><code>chmod +x  ~\/workspace\/qucheng\/busybox\nchmod +x  ~\/workspace\/qucheng\/make\nexport PATH=&quot;$PATH:~\/workspace\/qucheng&quot;\nalias wget=&quot;busybox  wget&quot;<\/code><\/pre>\n<\/li>\n<\/ul>\n<h3>2. \u4e0b\u8f7d Milk-V Duo Examples \u548c \u90e8\u7f72 GCC \u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe<\/h3>\n<ul>\n<li>\n<p>\u672c\u5de5\u7a0b\u63d0\u4f9b\u4e86\u5728Linux\u73af\u5883\u4e0b\u4f7f\u7528C\/C++\u5f00\u53d1\u5e94\u7528\u7684\u4e00\u4e9b\u4f8b\u5b50\uff0c\u53ef\u4ee5\u5728Milk-V Duo\u8bbe\u5907\u4e0a\u8fd0\u884c<\/p>\n<pre><code>git clone https:\/\/github.com\/milkv-duo\/duo-examples.git<\/code><\/pre>\n<\/li>\n<li>\n<p>\u52a0\u8f7d\u7f16\u8bd1\u73af\u5883 <\/p>\n<pre><code>cd duo-examples\nsource envsetup.sh<\/code><\/pre>\n<\/li>\n<li>\n<p>\u6dfb\u52a0\u73af\u5883\u53d8\u91cf<\/p>\n<pre><code>export PATH=&quot;$PATH:\/config\/workspace\/duo-examples\/duo-sdk\/riscv64-linux-musl-x86_64\/bin&quot;\nalias gcc=riscv64-unknown-linux-musl-gcc\nalias objdump=riscv64-unknown-linux-musl-objdump<\/code><\/pre>\n<\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>\u6e20\u6210\u5f00\u6e90\u793e Demo\u4e2d\u5fc3-code-server https:\/\/www.qucheng.cc\/ap [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1380,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4,12],"tags":[31,15,50],"class_list":["post-1526","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-docker","category-learn","tag-cpp","tag-docker","tag-vscode"],"_links":{"self":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1526","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/comments?post=1526"}],"version-history":[{"count":1,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1526\/revisions"}],"predecessor-version":[{"id":1527,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/posts\/1526\/revisions\/1527"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media\/1380"}],"wp:attachment":[{"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/media?parent=1526"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/categories?post=1526"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lyvba.com\/index.php\/wp-json\/wp\/v2\/tags?post=1526"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}