Rate This Document
Findability
Accuracy
Completeness
Readability

Using BiSheng Compiler

Compiling and Running the C and C++ Programs

clang  [command line flags]  hello.c  -o  hello.o 
./hello.o
clang++  [command line flags]  hello.cpp  -o  hello.o 
./hello.o

Compiling and Running the Fortran Program

flang  [command line flags]  hello.f90  -o  hello.o 
./hello.o

Specifying a Linker

Run the following command to specify the lld of LLVM as the linker for BiSheng compiler. If the lld of LLVM is not specified, the default ld is used.

clang  [command line flags]  -fuse-ld=lld  hello.c  -o  hello.o 
./hello.o