{"id":56993,"date":"2025-08-15T06:29:31","date_gmt":"2025-08-14T22:29:31","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/56993.html"},"modified":"2025-08-15T06:29:31","modified_gmt":"2025-08-14T22:29:31","slug":"risc-v%e8%8a%af%e7%89%87%e5%bc%80%e5%8f%91%e7%9a%84%e5%b7%a5%e5%85%b7%e7%b3%bb%e5%88%97-1-risc-v%e4%ba%a4%e5%8f%89%e7%bc%96%e8%af%91%e5%99%a8","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/56993.html","title":{"rendered":"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 -- 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668"},"content":{"rendered":"<p>\u672c\u7bc7\u5f00\u59cb\u4e00\u4e2a\u65b0\u7684\u7cfb\u5217&#8212;-RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217\u3002\u672c\u7bc7\u4eceRISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668\u770b\u8d77\u3002\u663e\u7136&#xff0c;\u8fd9\u9700\u8981Linux\u73af\u5883\u4e86&#xff0c;\u672c\u6b21\u4f7f\u7528\u7684\u662fUbuntu 24.04 LTS\u7248\u672c\u3002<\/p>\n<p>\u524d\u9762\u7684\u9879\u76ee&#xff0c;\u57fa\u4e8eRISC-V\u7684\u5168\u5957\u6307\u4ee4\u96c6&#xff0c;\u4f7f\u7528Chisel\u8bed\u8a00&#xff0c;\u7f16\u5199\u4e86\u5355\u5468\u671f\u6307\u4ee4\u67b6\u6784\u5904\u7406\u5668(Single Cycle Processor)\u548c\u4e94\u7ea7\u6d41\u6c34\u7ebf\u67b6\u6784\u5904\u7406\u5668(5 Stage Pipeline Processor)&#xff0c;\u5e76\u4f7f\u7528\u81ea\u884c\u6784\u9020\u7684\u6307\u4ee4\u5e8f\u5217\u8fdb\u884c\u4e86\u6d4b\u8bd5&#xff0c;\u5305\u62ec\u5728\u4e94\u7ea7\u6d41\u6c34\u7ebf\u67b6\u6784\u7684\u82af\u7247\u4e0a\u901a\u8fc7\u6307\u4ee4\u4e4b\u95f4\u63d2\u5165\u7a7a\u6307\u4ee4\u6765\u6a21\u62df\u201c\u6307\u4ee4\u7a7a\u6ce1\u201d\u3001\u89e3\u51b3\u6d41\u6c34\u7ebf\u67b6\u6784\u4e2d\u7684\u6570\u636e\u5192\u9669\u7684\u95ee\u9898\u3002<\/p>\n<p>\u8fd9\u79cd\u624b\u5de5\u6784\u9020\u6307\u4ee4\u5e8f\u5217\u7684\u65b9\u5f0f&#xff0c;\u7528\u6765\u70bc\u624b\u8fd8\u662f\u5f88\u597d\u7684&#xff0c;\u5305\u62ec\u5bf9\u6307\u4ee4\u96c6\u7684\u5404\u5b57\u6bb5\u7684\u719f\u6089\u3002\u4f46\u662f&#xff0c;\u8fd9\u6bd5\u7adf\u592a\u539f\u59cb\u4e86&#xff0c;\u5bf9\u4e8e\u66f4\u591a\u6307\u4ee4\u7684\u6784\u9020&#xff0c;\u592a\u7e41\u7410\u4e86\u3002\u8fd9\u4e5f\u662f\u4e3a\u4ec0\u4e48\u524d\u9762\u53ea\u80fd\u6784\u9020Load*6 &#043; Add*5 &#043; Store*1\u7684\u6307\u4ee4\u96c6\u5408&#xff0c;\u6ca1\u6709\u5bf9\u66f4\u591a\u7684\u6307\u4ee4\u8fdb\u884c\u6d4b\u8bd5\u3002\u66f4\u7b80\u5355\u7684\u65b9\u5f0f&#xff0c;\u663e\u7136\u662f\u4f7f\u7528 {\u9ad8\u7ea7\u8bed\u8a00 &#043; \u7f16\u8bd1\u5668} \u7f16\u8bd1\u51faRISC-V\u6307\u4ee4\u5e8f\u5217\u5e76\u80fd\u5bf9Chisel\/Verilog\u7f16\u5199\u7684RISC-V\u5904\u7406\u5668\u82af\u7247\u8fdb\u884c\u6d4b\u8bd5&#xff01;\u4ece\u8f6f\u4ef6\u4e16\u754c\u5230\u786c\u4ef6\u4e16\u754c\u201c\u6253\u901a\u201d&#xff01;<\/p>\n<p>\u901a\u5e38&#xff0c;RISC-V\u7684\u4ea4\u53c9\u7f16\u8bd1\u5668\u90fd\u662f\u63a8\u8350\u4f7f\u7528riscv-gnu-toolchain\u6765\u6784\u9020\u3002\u7136\u800c&#xff0c;riscv-gnu-toolchain\u662f\u4e00\u4e2a\u5de8\u5927\u7684\u201c\u5168\u5bb6\u6876\u201d&#xff0c;\u5f88\u5bb9\u6613\u5728\u67d0\u4e00\u4e2a\u6b65\u9aa4\u5361\u4f4f&#xff01;\u4e3a\u6b64&#xff0c;\u9700\u8981\u5bf9\u8fd9\u4e2a\u5168\u5bb6\u6876\u62c6\u5f00\u3001\u5316\u6574\u4e3a\u96f6&#xff0c;\u951a\u5b9aRISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668\u8fd9\u4e00\u4e2a\u4e8b\u60c5\u53bb\u505a\u3002<\/p>\n<p>RISC-V\u7684\u4ea4\u53c9\u7f16\u8bd1\u5668&#xff0c;\u9700\u8981\u4e24\u4e2a\u9879\u76ee&#xff0c;\u4e00\u4e2a\u662friscv-binutils-gdb&#xff0c;\u53e6\u4e00\u4e2a\u662friscv-gcc\u3002\u5728\u7f16\u8bd1\u7684\u65f6\u5019&#xff0c;\u9700\u8981\u5148\u7f16\u8bd1\u524d\u8005&#xff0c;\u5e76\u628a\u524d\u8005\u7684\u4e8c\u8fdb\u5236\u6267\u884c\u6587\u5bb6\u52a0\u5165\u5230PATH\u8def\u5f84\u4e2d&#xff0c;\u7136\u540e\u7f16\u8bd1\u540e\u8005\u3002\u4e0b\u9762\u662f\u672c\u6b21\u7f16\u8bd1\u7684\u8bb0\u5f55&#xff1a;<\/p>\n<\/p>\n<p>1\u3001\u65b0\u5efa\u4e00\u4e2a\u76ee\u5f55&#xff1a;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src$ mkdir riscv-gcc-minimal2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src$ cd riscv-gcc-minimal2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$<\/p>\n<\/p>\n<p>2\u3001\u4e0b\u8f7driscv-binutils\u548criscv-gcc\u4e24\u4e2a\u5e93&#xff01;\u5206\u522b\u67092.4G\u548c875M\u4e4b\u591a&#xff01;<\/p>\n<p><span style=\"color:#fe2c24\">\u56fd\u5185\u955c\u50cf\u5730\u57401&#xff1a;git clone https:\/\/gitee.com\/mirrors\/riscv-binutils-gdb.git<\/span><\/p>\n<p><span style=\"color:#fe2c24\">\u56fd\u5185\u955c\u50cf\u5730\u57402&#xff1a;git clone https:\/\/gitee.com\/mirrors\/riscv-gcc.git<\/span><\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ git clone https:\/\/gitee.com\/mirrors\/riscv-gcc.git<\/p>\n<p>Cloning into &#039;riscv-gcc&#039;&#8230;<\/p>\n<p>remote: Enumerating objects: 2812555, done.<\/p>\n<p>remote: Total 2812555 (delta 0), reused 0 (delta 0), pack-reused 2812555 (from 1)<\/p>\n<p>Receiving objects: 100% (2812555\/2812555), 1.47 GiB | 14.62 MiB\/s, done.<\/p>\n<p>Resolving deltas: 100% (2196240\/2196240), done.<\/p>\n<p>Updating files: 100% (100556\/100556), done.<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ git clone https:\/\/gitee.com\/mirrors\/riscv-binutils-gdb.git<\/p>\n<p>Cloning into &#039;riscv-binutils-gdb&#039;&#8230;<\/p>\n<p>remote: Enumerating objects: 1006156, done.<\/p>\n<p>remote: Total 1006156 (delta 0), reused 0 (delta 0), pack-reused 1006156 (from 1)<\/p>\n<p>Receiving objects: 100% (1006156\/1006156), 390.38 MiB | 14.09 MiB\/s, done.<\/p>\n<p>Resolving deltas: 100% (841657\/841657), done.<\/p>\n<p>Updating files: 100% (37128\/37128), done.<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;1<\/p>\n<p>2.4G .\/riscv-gcc<\/p>\n<p>875M .\/riscv-binutils-gdb<\/p>\n<p>3.3G .<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 .\/riscv-gcc\/.git<\/p>\n<p>1.6G .\/riscv-gcc\/.git<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 .\/riscv-binutils-gdb\/.git<\/p>\n<p>425M .\/riscv-binutils-gdb\/.git<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$<\/p>\n<\/p>\n<p>3\u3001\u67e5\u5404\u4e2a\u4f9d\u8d56\u5e93&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ sudo apt-get install autoconf automake autotools-dev curl python3 libmpc-dev libmpfr-dev libgmp-dev gawk build-essential bison flex texinfo gperf libtool patchutils bc zlib1g-dev libexpat-dev<\/p>\n<p>\/\/\u5177\u4f53\u8f93\u51fa\u7565&#xff01;<\/p>\n<p>&#8212;-\u300b<span style=\"color:#fe2c24\">\u8fd9\u4e00\u6b65\u9aa4\u5f88\u5bb9\u6613\u88ab\u5ffd\u89c6\u4f46\u5b9e\u9645\u975e\u5e38\u91cd\u8981\u3002<\/span>\u88ab\u5ffd\u89c6\u662f\u60f3\u7740\u51fa\u9519\u4ee5\u540e\u518d\u6765\u6309\u9700\u5b89\u88c5&#xff0c;\u4f46\u662f<span style=\"color:#fe2c24\">\u4e00\u65e6\u5fd8\u8bb0\u4ee5\u540e\u518d\u51fa\u9519\u5c31\u66f4\u96be\u60f3\u8d77\u6765\u4e86&#xff0c;\u56e0\u4e3a\u7f3a\u5c11\u8fd9\u4e9b\u57fa\u7840\u5de5\u5177\u4ee5\u540e\u7684\u51fa\u9519\u63d0\u793a\u4f1a\u5f88\u96be\u770b\u61c2<\/span>&#xff0c;\u4f1a\u8d70\u5230\u5176\u5b83\u5b9a\u4f4d\u8def\u5f84\u4e0a\u53bb&#xff01;\u975e\u5e38\u6d88\u8017\u65f6\u95f4\u3002<\/p>\n<p>&#8212;-\u300b\u60f3\u8d77\u6765\u5728\u7f16\u8bd1gcc\u7684\u8fc7\u7a0b\u4e2d&#xff0c;\u56e0\u4e3aflex, texinfo, bison\u7b49\u6ca1\u6709\u5b89\u88c5&#xff0c;\u7f16\u8bd1\u8fc7\u7a0b\u5148\u540e\u53d1\u73b0\u591a\u4e2a\u9519\u8bef&#xff0c;\u7136\u540e\u518d\u9010\u4e00\u5b89\u88c5&#xff0c;\u8fd8\u662f\u6ca1\u6709\u89e3\u51b3\u95ee\u9898&#xff0c;\u8fdb\u800c\u6000\u7591&#8211;with-newlib\u8fd9\u4e2a\u914d\u7f6e\u9009\u9879\u662f\u5426\u610f\u5473\u7740gcc\u4f9d\u8d56newlib\u5728\u5148\u7f16\u8bd1&#xff0c;\u4e8e\u662f\u8f6c\u5230newlib\u7684\u4e0b\u8f7d\u7f16\u8bd1\u548c\u5b89\u88c5\u4e0a\u53bb\u4e86\u3002<\/p>\n<p>&#8212;-\u300b\u800cnewlib\u7684\u7f16\u8bd1\u53c8\u63d0\u793a\u4f9d\u8d56riscv64-unknown-elf-cc&#xff0c;\u4e8e\u662f\u6000\u7591newlib\u548cgcc\u4e4b\u95f4\u5b58\u5728\u5faa\u73af\u4f9d\u8d56&#xff01;\u5f53\u7136\u8fd8\u6709\u5176\u5b83\u95ee\u9898&#xff0c;\u89e3\u51b3\u95ee\u9898\u8fc7\u7a0b\u4e2d\u5927\u6982\u53c8\u53c8\u53c8\u5b89\u88c5\u4e86\u4e00\u4e9b\u5e93\u3002<\/p>\n<p>&#8212;-\u300b\u65e0\u6570\u6b21\u8bd5\u9519\u4ee5\u540e&#xff0c;\u53c8\u56de\u5230\u4e86<span style=\"color:#fe2c24\">binutils &#043; gcc\u7684\u7f16\u8bd1\u4e0a\u6765\u4e86&#xff0c;\u7ed3\u679cgcc\u7684\u7f16\u8bd1\u6210\u529f\u4e86&#xff01;\u4e0d\u4f9d\u8d56newlib&#xff08;\u4f46configure\u7684\u65f6\u5019\u8981\u52a0\u4e0a&#8211;with-newlib&#xff09;<\/span>\u3002\u5982\u672c\u6587\u6240\u8ff0\u3002<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$<\/p>\n<\/p>\n<p>4\u3001\u9996\u5148\u5bf9binutils\u8fdb\u884c\u7f16\u8bd1&#xff01;<\/p>\n<p>&#8212;-\u5957\u8def1&#xff1a;\u4e3abinutils\u521b\u5efa\u76ee\u5f55\/opt\/binutils2&#xff0c;\u4ee5\u53ca\u4e3a\u9879\u76ee\u7f16\u8bd1\u521b\u5efa.\/build\u76ee\u5f55&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ cd riscv-binutils-gdb\/<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb$ sudo mkdir \/opt\/binutils2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb$ mkdir build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb$ cd build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ ..\/configure &#8211;prefix&#061;\/opt\/binutils2 &#8211;target&#061;riscv64-unknown-elf &#8211;disable-multilib &#8211;disable-gdb &#8211;disable-sim<\/p>\n<p>\/\/\u5177\u4f53\u8f93\u51fa\u7701\u7565\u3002<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ make 2&gt;&amp;1 | tee build.log<\/p>\n<p>\/\/\u5177\u4f53\u8f93\u51fa\u7565&#xff01;\u8fd9\u4e2amake\u7684\u5957\u8def\u662f\u4f7f\u7528tee build.log\u4ee5\u53ca2&gt;&amp;1&#xff0c;\u8fd9\u6837\u53ef\u4ee5\u5c06\u65e5\u5fd7\u542b\u9519\u8bef\u90fd\u8f93\u51fa\u5230stdout\u4e0a\u5e76\u4e14\u901a\u8fc7\u7ba1\u9053\u7b26\u53f7\u7ed9tee&#xff0c;tee\u4f1a\u6253\u5370\u52302\u4e2a\u5730\u65b9&#8212;-1\u662fstdout\u53e6\u4e00\u4e2a\u662fbuild.log&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ sudo make install<\/p>\n<p>\/\/\u5177\u4f53\u8f93\u51fa\u7565&#xff01;\u4f46\u662f\u968f\u540e\u53ef\u4ee5\u67e5\u770b\u5230\u8fd9\u4e9b\u6587\u4ef6\u90fd\u751f\u6210\u4e86&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ ls -l \/opt\/binutils2\/<\/p>\n<\/p>\n<p>drwxr-xr-x 2 root root 4096 Aug 14 13:26 bin<\/p>\n<\/p>\n<p>drwxr-xr-x 3 root root 4096 Aug 14 13:26 lib<\/p>\n<p>drwxr-xr-x 4 root root 4096 Aug 14 13:26 riscv64-unknown-elf<\/p>\n<p>drwxr-xr-x 5 root root 4096 Aug 14 13:26 share<\/p>\n<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ <span style=\"color:#fe2c24\">export PATH&#061;$PATH:\/opt\/binutils2\/bin<\/span><\/p>\n<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ which riscv64-unknown-elf-objdump<\/p>\n<p>\/opt\/riscv-binutils\/bin\/riscv64-unknown-elf-objdump<\/p>\n<\/p>\n<p>5\u3001\u5176\u6b21\u5bf9gcc\u8fdb\u884c\u7f16\u8bd1&#xff01;<\/p>\n<p>&#8212;-\u5957\u8def1&#xff1a;\u4e3abinutils\u521b\u5efa\u76ee\u5f55\/opt\/binutils2&#xff0c;\u4ee5\u53ca\u4e3a\u9879\u76ee\u7f16\u8bd1\u521b\u5efa.\/build\u76ee\u5f55&#xff01;<\/p>\n<p>&#8212;-\u5957\u8def2&#xff1a;\u5728\u5df2\u7ecf\u6784\u5efa\u8fc7\u7684\u76ee\u5f55\u4e0b\u91cd\u65b0\u6784\u5efa\u8981make clean &#043; rm build &#043; \u91cd\u65b0mkdir build&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-binutils-gdb\/build$ cd ..\/..\/riscv-gcc<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ sudo mkdir \/opt\/riscv-gcc2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ mkdir build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ cd build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ ..\/configure &#8211;prefix&#061;\/opt\/riscv-gcc2 \\\\<\/p>\n<p>&gt; &#8211;target&#061;riscv64-unknown-elf \\\\<\/p>\n<p>&#8211;disable-multilib \\\\<\/p>\n<p>&#8211;disable-shared \\\\<\/p>\n<p>&#8211;disable-threads \\\\<\/p>\n<p>&#8211;enable-languages&#061;c \\\\<\/p>\n<p>&#8211;without-headers \\\\<\/p>\n<p>&#8211;with-newlib \\\\<\/p>\n<p>&#8211;with-system-zlib&#061;no<\/p>\n<p>\/\/\u5177\u4f53\u8f93\u51fa\u7565&#xff01;&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ make 2&gt;&amp;1 | tee build.log<\/p>\n<p>\/\/\u5957\u8def\u540c\u4e0a&#xff0c;\u5305\u62ec\u4f7f\u75282&gt;&amp;1\u548ctee build.log\u4e24\u4e2a&#xff01;<\/p>\n<p>\/\/\u8fd9\u90e8\u5206\u8f93\u51fa\u7701\u7565\u3002&#8212;-\u51fa\u9519\u4e86&#xff01;&#xff01;\u91cd\u65b0\u6765\u4f46\u9700\u8981\u6539\u53d8configure&#xff01;&#xff01;\u5e78\u4e8f\u6b64\u524d\u4fdd\u7559\u4e86\u914d\u7f6e\u3002<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ cd ..<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ rm -rf build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ mkdir build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc$ cd build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ cat ~\/riscv-gcc-buildcmd.txt<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ ..\/configure &#8211;target&#061;riscv64-unknown-elf &#8211;prefix&#061;\/opt\/riscv-gcc2 &#8211;enable-languages&#061;c &#8211;with-newlib &#8211;with-sysroot&#061;\/opt\/riscv-gcc\/riscv64-unknown-elf &#8211;with-gnu-as &#8211;with-gnu-ld &#8211;disable-shared &#8211;disable-threads &#8211;disable-nls &#8211;disable-libssp &#8211;disable-libgomp &#8211;disable-libquadmath &#8211;with-arch&#061;rv64imac &#8211;with-abi&#061;lp64<\/p>\n<p>\/\/\u8fd9\u91cc\u7701\u7565\u3002<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ make 2&gt;&amp;1 | tee build.log<\/p>\n<p>\/\/\u5957\u8def\u540c\u4e0a&#xff0c;\u4f7f\u7528tee&#xff01;\u7f16\u8bd1\u6210\u529f&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ sudo make install<\/p>\n<p>\/\/\u5b89\u88c5&#xff01;\u53ef\u4ee5\u770b\u5230\u7f16\u8bd1\u6210\u529f\u4e86&#xff01;&#xff01;\u81f3\u6b64&#xff0c;\u628a\u6574\u4e2a\u7f16\u8bd1\u8fc7\u7a0b\u53c8\u91cd\u65b0\u8dd1\u4e86\u4e00\u904d\u3002<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ ls -l \/opt\/riscv-gcc2<\/p>\n<p>drwxr-xr-x 2 root root 4096 Aug 14 13:57 bin<\/p>\n<p>drwxr-xr-x 2 root root 4096 Aug 14 13:57 include<\/p>\n<p>drwxr-xr-x 3 root root 4096 Aug 14 13:57 lib<\/p>\n<p>drwxr-xr-x 3 root root 4096 Aug 14 13:57 libexec<\/p>\n<p>drwxr-xr-x 4 root root 4096 Aug 14 13:57 share<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$<\/p>\n<p>####\u76f8\u5bf9\u539f\u6765\u5b83\u4eec\u5206\u522b\u589e\u52a0\u4e861.1G\u548c205M\u7684\u5927\u5c0f&#xff0c;\u5728build\u7684\u76ee\u5f55\u4e0b&#xff01;\u8fd9\u5927\u6982\u4e5f\u662f\u4f7f\u7528build\u76ee\u5f55\u7684\u539f\u56e0&#xff01;&#xff01;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2\/riscv-gcc\/build$ cd ..\/..\/<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;1<\/p>\n<p>3.5G .\/riscv-gcc<\/p>\n<p>1.1G .\/riscv-binutils-gdb<\/p>\n<p>4.6G .<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 .\/riscv-gcc\/build<\/p>\n<p>1.1G .\/riscv-gcc\/build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 .\/riscv-binutils-gdb\/build<\/p>\n<p>205M .\/riscv-binutils-gdb\/build<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$<\/p>\n<p>####\u5728\u5b89\u88c5\u76ee\u5f55\u4e0b\u7684\u5927\u5c0f\u5982\u4e0b&#xff1a;<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 \/opt\/riscv-gcc2<\/p>\n<p>498M \/opt\/riscv-gcc2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$ du -h &#8211;max-depth&#061;0 \/opt\/binutils2<\/p>\n<p>82M \/opt\/binutils2<\/p>\n<p>chipcamp&#064;ChipCamp:~\/src\/riscv-gcc-minimal2$<\/p>\n<\/p>\n<p>6\u3001\u4e0a\u9762\u7684\u6b65\u9aa4\u7f16\u8bd1\u7684\u662friscv64-unknown-elf-xxx\u3002\u8fd8\u9700\u8981\u7f16\u8bd1riscv32-unknown-elf-xxx&#xff0c;\u4f7f\u7528\u5982\u4e0b\u7684\u6b65\u9aa4\u5de9\u56fa\u4e00\u4e0b&#xff1a;<\/p>\n<p>riscv-binutils-gdb&#xff1a;\u4e0b\u5217\u7b2c\u4e00\u4e2a\u662friscv64\u7684&#xff0c;\u7b2c\u4e8c\u4e2a\u5219\u662friscv32\u7684\u3002<\/p>\n<p>..\/configure &#8211;prefix&#061;\/opt\/binutils2 &#8211;target&#061;riscv64-unknown-elf &#8211;disable-multilib &#8211;disable-gdb &#8211;disable-sim<\/p>\n<p>..\/configure &#8211;prefix&#061;\/opt\/binutils2 &#8211;target&#061;riscv32-unknown-elf &#8211;disable-multilib &#8211;disable-gdb &#8211;disable-sim<\/p>\n<\/p>\n<p>riscv-gcc&#xff1a;\u4e0b\u5217\u7b2c\u4e00\u4e2a\u662friscv64\u7684&#xff0c;\u7b2c\u4e8c\u4e2a\u662friscv32\u7684\u3002<\/p>\n<p>..\/configure &#8211;target&#061;riscv64-unknown-elf &#8211;prefix&#061;\/opt\/riscv-gcc2 &#8211;enable-languages&#061;c &#8211;with-newlib &#8211;with-sysroot&#061;\/opt\/riscv-gcc2\/riscv64-unknown-elf &#8211;with-gnu-as &#8211;with-gnu-ld &#8211;disable-shared &#8211;disable-threads &#8211;disable-nls &#8211;disable-libssp &#8211;disable-libgomp &#8211;disable-libquadmath &#8211;with-arch&#061;rv64imac &#8211;with-abi&#061;lp64<\/p>\n<p>..\/configure &#8211;target&#061;riscv32-unknown-elf &#8211;prefix&#061;\/opt\/riscv-gcc2 &#8211;enable-languages&#061;c &#8211;with-newlib &#8211;with-sysroot&#061;\/opt\/riscv-gcc2\/riscv32-unknown-elf &#8211;with-gnu-as &#8211;with-gnu-ld &#8211;disable-shared &#8211;disable-threads &#8211;disable-nls &#8211;disable-libssp &#8211;disable-libgomp &#8211;disable-libquadmath<\/p>\n<p>\u7b2c\u4e00\u6b21\u7f16\u8bd1\u7684\u65f6\u5019\u8981\u89e3\u51b3\u53ef\u80fd\u51fa\u73b0\u7684\u9519\u8bef&#xff0c;\u56e0\u6b64\u4f7f\u7528 make 2&gt;&amp;1 | tee build.log\u3002<\/p>\n<p>\u7b2c\u4e8c\u6b21\u7f16\u8bd1\u7684\u65f6\u5019\u53ef\u4ee5\u4f7f\u7528make -j 8\u6765\u52a0\u901f\u7f16\u8bd1\u4e86&#xff01;<\/p>\n<\/p>\n<p>7\u3001\u7f16\u8bd1\u51fa\u6765\u7684\u53ef\u6267\u884c\u6587\u4ef6&#xff1a;<\/p>\n<p>riscv-gcc\u7f16\u8bd1\u51fa\u6765\u7684\u53ef\u6267\u884c\u6587\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"491\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222928-689e6348e7a41.png\" width=\"898\" \/><\/p>\n<p>riscv-binutils-gdb\u7f16\u8bd1\u51fa\u6765\u7684\u53ef\u6267\u884c\u6587\u4ef6&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"757\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222929-689e6349293fe.png\" width=\"893\" \/><\/p>\n<\/p>\n<p>8\u3001\u4f7f\u7528\u4ea4\u53c9\u7f16\u8bd1\u5668<\/p>\n<p>&#8212;-\u7f16\u8bd1\u5668(C\u8bed\u8a00\u7f16\u8bd1\u4e3a\u6c47\u7f16.S)<\/p>\n<p>&#8212;-\u6c47\u7f16\u5668(.S\u6c47\u7f16\u4e3a.o)<\/p>\n<p>&#8212;-\u94fe\u63a5\u5668(.o\u94fe\u63a5\u4e3a.elf)<\/p>\n<p>&#8212;-ELF\u8f6c\u5316\u4e3abin&#xff08;ELF\u662f\u6709OS\u7684\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;bin\u662f\u88f8\u673a\u53ef\u6267\u884c\u6587\u4ef6&#xff0c;\u4e24\u8005\u6ce8\u610f\u533a\u522bTBD)\u3002<\/p>\n<p>&#8212;-bin\u8f6c\u6362\u4e3ahex&#xff08;\u5c31\u662f\u5728\u6b64\u524d\u7684chisel\u7cfb\u5217\u4ee3\u7801\u4e2d\u4f7f\u7528\u7684hex&#xff0c;\u662f\u4e8c\u8fdb\u5236\u6587\u4ef6\u7684\u53ef\u8bfb\u8868\u8fbe&#xff0c;\u5728chisel\u4ee3\u7801\u4e2d\u52a0\u8f7d\u4e3aCPU\u5bc4\u5b58\u5668\u548c\u5b58\u50a8\u5668\u4e2d\u7684\u4ee3\u7801\u65f6\u53c8\u53d8\u4e3a\u4e86\u4e8c\u8fdb\u5236\u6307\u4ee4\u5e8f\u5217)\u3002<\/p>\n<p>&#8212;-elf\u8f6c\u6362\u4e3adump&#xff08;\u540c\u6837\u4e5f\u662f\u4e8c\u8fdb\u5236\u7684\u53ef\u8bfb\u8868\u8fbe&#xff0c;\u5305\u542b\u4e86\u6bd4hex\u8981\u591a\u7684\u5143\u4fe1\u606f&#xff09;\u3002<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"802\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222929-689e63497e252.png\" width=\"1413\" \/><\/p>\n<p>\u5404\u6587\u4ef6\u7684\u683c\u5f0f\u5982\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"160\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222929-689e6349e6e12.png\" width=\"1297\" \/><\/p>\n<\/p>\n<p>9\u3001\u770b\u4e00\u4e0b\u540c\u4e00\u4e2atest.c\u4f7f\u7528riscv64\u548criscv32\u7f16\u8bd1\u51fa\u6765\u7684RISC-V\u6c47\u7f16\u4ee3\u7801\u6709\u4ec0\u4e48\u4e0d\u540c&#xff1f;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"757\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222930-689e634a11eac.png\" width=\"1239\" \/><\/p>\n<p>\u4eceC\u4ee3\u7801\u5230\u6c47\u7f16\u4ee3\u7801&#xff0c;\u4ee5\u53ca\u6c47\u7f16\u4ee3\u7801\u5bf9\u7167RISC-V\u6307\u4ee4\u624b\u518c\u8fdb\u884c\u89e3\u8bfb&#xff0c;\u8981\u653e\u5728\u540e\u9762TBD\u4e86&#xff01;<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb188\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u7684\u6784\u5efa\u8fc7\u7a0b\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u56fd\u5185\u955c\u50cf\u4e0b\u8f7driscv-binutils-gdb\u548criscv-gcc\u6e90\u7801\uff0c\u5230\u5b89\u88c5\u4f9d\u8d56\u5e93\u3001\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570\u3001\u6267\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5305\u62ec\u9047\u5230\u95ee\u9898\u65f6\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86\u5982\u4f55\u5206\u522b\u7f16\u8bd1riscv64\u548criscv32\u7248\u672c\u7684\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\uff0c\u5e76\u63d0\u4f9b\u4e86\u5177\u4f53\u7684\u914d\u7f6e\u53c2\u6570\u3002\u6700\u540e\u7b80\u8981\u8bf4\u660e\u4e86\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u5c06C\u7a0b\u5e8f\u7f16\u8bd1\u4e3aRISC-V\u6c47\u7f16\u548c\u673a\u5668\u7801\u3002\u8be5\u8fc7\u7a0b\u4e3a\u540e\u7eed\u4f7f\u7528\u9ad8\u7ea7\u8bed\u8a00\u6d4b\u8bd5RISC-V\u5904\u7406\u5668\u5960\u5b9a\u4e86\u57fa\u7840\u3002<\/p>\n","protected":false},"author":2,"featured_media":56988,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[998,5941,5942],"topic":[],"class_list":{"0":"post-56993","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","6":"hentry","7":"category-server","8":"tag-risc-v","10":"tag-riscv-gcc"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/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.wsisp.com\/helps\/56993.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb188\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u7684\u6784\u5efa\u8fc7\u7a0b\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u56fd\u5185\u955c\u50cf\u4e0b\u8f7driscv-binutils-gdb\u548criscv-gcc\u6e90\u7801\uff0c\u5230\u5b89\u88c5\u4f9d\u8d56\u5e93\u3001\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570\u3001\u6267\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5305\u62ec\u9047\u5230\u95ee\u9898\u65f6\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86\u5982\u4f55\u5206\u522b\u7f16\u8bd1riscv64\u548criscv32\u7248\u672c\u7684\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\uff0c\u5e76\u63d0\u4f9b\u4e86\u5177\u4f53\u7684\u914d\u7f6e\u53c2\u6570\u3002\u6700\u540e\u7b80\u8981\u8bf4\u660e\u4e86\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u5c06C\u7a0b\u5e8f\u7f16\u8bd1\u4e3aRISC-V\u6c47\u7f16\u548c\u673a\u5668\u7801\u3002\u8be5\u8fc7\u7a0b\u4e3a\u540e\u7eed\u4f7f\u7528\u9ad8\u7ea7\u8bed\u8a00\u6d4b\u8bd5RISC-V\u5904\u7406\u5668\u5960\u5b9a\u4e86\u57fa\u7840\u3002\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/56993.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-14T22:29:31+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222928-689e6348e7a41.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56993.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/56993.html\",\"name\":\"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-14T22:29:31+00:00\",\"dateModified\":\"2025-08-14T22:29:31+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/56993.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/56993.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/56993.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 -- 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","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.wsisp.com\/helps\/56993.html","og_locale":"zh_CN","og_type":"article","og_title":"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb188\u6b21\uff0c\u70b9\u8d5e3\u6b21\uff0c\u6536\u85cf2\u6b21\u3002\u672c\u6587\u4ecb\u7ecd\u4e86RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u7684\u6784\u5efa\u8fc7\u7a0b\u3002\u6587\u7ae0\u8be6\u7ec6\u8bb0\u5f55\u4e86\u4ece\u56fd\u5185\u955c\u50cf\u4e0b\u8f7driscv-binutils-gdb\u548criscv-gcc\u6e90\u7801\uff0c\u5230\u5b89\u88c5\u4f9d\u8d56\u5e93\u3001\u914d\u7f6e\u7f16\u8bd1\u53c2\u6570\u3001\u6267\u884c\u7f16\u8bd1\u5b89\u88c5\u7684\u5168\u8fc7\u7a0b\uff0c\u5305\u62ec\u9047\u5230\u95ee\u9898\u65f6\u7684\u89e3\u51b3\u65b9\u6cd5\u3002\u91cd\u70b9\u4ecb\u7ecd\u4e86\u5982\u4f55\u5206\u522b\u7f16\u8bd1riscv64\u548criscv32\u7248\u672c\u7684\u4ea4\u53c9\u7f16\u8bd1\u5de5\u5177\u94fe\uff0c\u5e76\u63d0\u4f9b\u4e86\u5177\u4f53\u7684\u914d\u7f6e\u53c2\u6570\u3002\u6700\u540e\u7b80\u8981\u8bf4\u660e\u4e86\u5982\u4f55\u4f7f\u7528\u8fd9\u4e9b\u5de5\u5177\u5c06C\u7a0b\u5e8f\u7f16\u8bd1\u4e3aRISC-V\u6c47\u7f16\u548c\u673a\u5668\u7801\u3002\u8be5\u8fc7\u7a0b\u4e3a\u540e\u7eed\u4f7f\u7528\u9ad8\u7ea7\u8bed\u8a00\u6d4b\u8bd5RISC-V\u5904\u7406\u5668\u5960\u5b9a\u4e86\u57fa\u7840\u3002","og_url":"https:\/\/www.wsisp.com\/helps\/56993.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-14T22:29:31+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250814222928-689e6348e7a41.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"5 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/56993.html","url":"https:\/\/www.wsisp.com\/helps\/56993.html","name":"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 - 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-14T22:29:31+00:00","dateModified":"2025-08-14T22:29:31+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/56993.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/56993.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/56993.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"RISC-V\u82af\u7247\u5f00\u53d1\u7684\u5de5\u5177\u7cfb\u5217 -- 1. RISC-V\u4ea4\u53c9\u7f16\u8bd1\u5668"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56993","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=56993"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/56993\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/56988"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=56993"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=56993"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=56993"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=56993"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}