现在debian的 binutils-2.18.50 和gcc-snapshot 已经支持loongson2f和loongson2e
将版本升级到sid, 增加experimental 就可以安装gcc-snapshot和binutils-2.18.50
然后在编译时用环境变量:
export PATH="/usr/lib/gcc-snapshot/bin:$PATH"
export LD_LIBRARY_PATH="/usr/lib/gcc-snapshot/lib:$LD_LIBRARY_PATH"
就可以编译了:gcc -march=loongson2f -mtune=loongson2f -O3 -lpthread -o testcpu benchmark.c
增加bjlx的补充源, 可以在lenny下直接安装这2个软件
最新评论
6 周 3 天 前
7 周 13 小时 前
8 周 2 天 前
8 周 3 天 前
11 周 17 小时 前
11 周 6 天 前
12 周 3 天 前
13 周 3 天 前
15 周 1 天 前
16 周 6 天 前