0182774ワット発電中さん
2020/11/03(火) 18:14:24.68ID:91AZLfsnSipeed MaixシリーズのArduino用のRISC-V RV64GCインラインアセンブラ デモプログラム(倍精度浮動小数点修正版)
https://pastebin.com/gvsybiG0
こちらは倍精度浮動小数点命令を使用するのでオプションの変更が必要です
(Arduino IDE、PlatformIO IDEともにデフォルトのオプションが-march=rv64imafcなため
アセンブラが倍精度浮動小数点命令でエラーを出すため。
-march=rv64imafdcもしくは-march=rv64gcを指定する)
PlatformIO IDEでビルドする場合はplatformio.iniに
下記オプションのいずれかを指定してください
build_unflags = -march=rv64imafc
build_flags = -mabi=lp64f -march=rv64gc
build_unflags = -Os -march=rv64imafc
build_flags = -O2 -mabi=lp64f -march=rv64gc
build_unflags = -Os -march=rv64imafc
build_flags = -O3 -mabi=lp64f -march=rv64gc
Arduino IDEでビルドする場合は下記のやり方でオプションを変更してください
(オプション変更に関しては自己責任でお願いします)
https://pastebin.com/E66j9e7f