Rate This Document
Findability
Accuracy
Completeness
Readability

Usage of the -mgeneral-regs-only Option

If this option is enabled, the compiler only generates code for general purpose registers. This prevents the compiler from using floating-point or advanced SIMD registers. Therefore, when this option is added during compilation, the compiler should avoid floating-point operation instructions. If floating-point operations exist in the program, BiSheng Compiler calls the library functions in compiler-rt for calculation. In this case, the -rtlib=compiler-rt -l gcc_s option needs to be added during linking.