Gaviar (小志掌機) >> Assembly
安裝環境
司徒目前是使用Debian 10(x64)當作開發環境,編譯器準備方式如下:
$ cd $ wget https://github.com/steward-fu/archives/releases/download/f133/Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz $ tar xvf Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1-20220906.tar.gz $ sudo mv Xuantie-900-gcc-linux-5.10.4-glibc-x86_64-V2.6.1 /opt/f133 $ export PATH=/opt/f133/bin:$PATH $ riscv64-unknown-linux-gnu-gcc --version riscv64-unknown-linux-gnu-gcc (Xuantie-900 linux-5.10.4 glibc gcc Toolchain V2.6.1 B-20220906) 10.2.0 Copyright (C) 2020 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
下載工具則是使用xfel,安裝方式如下:
$ cd $ git clone https://github.com/xboot/xfel $ cd xfel $ make $ sudo make install $ xfel --help xfel(v1.3.1) - https://github.com/xboot/xfel