Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在此处输入图像描述
我只需要32-bit说明,但通过压缩gcc编译我的c代码。我尝试了没有 c 的 -march= 选项,但压缩指令仍然存在。如何获得未压缩的(?)指令?
32-bit
gcc
c
根据关于 RISC-V 命令行选项的GCC 手册部分,您可以传递标准 RISC-V ISA 子集名称,如第 1 卷中指定的那样。1 章。27 的手册(PDF,来源)中-march=。例如,要为基本 32 位 RISC-V 编译而根本没有扩展,请添加-march=rv32i到您的编译器标志。
-march=
-march=rv32i