Using BiSheng Compiler
Compiling and Running the C and C++ Programs
Run the following command to compile and run the C program. command line flags is a compilation option. For details, see BiSheng Compiler Options.
1 2 | clang [command line flags] hello.c -o hello.o ./hello.o |
Run the following command to compile and run the C++ program. command line flags is a compilation option. For details, see BiSheng Compiler Options.
1 2 | clang++ [command line flags] hello.cpp -o hello.o ./hello.o |
Compiling and Running the Fortran Program
Run the following command to compile and run the Fortran program. command line flags is a compilation option. For details, see BiSheng Compiler Options.
1 2 | flang [command line flags] hello.f90 -o hello.o ./hello.o |
Specifying a Linker
Specify the lld of LLVM as the linker for BiSheng compiler. If the lld of LLVM is not specified, the default ld is used. command line flags is a compilation option. For details, see BiSheng Compiler Options.
1 2 | clang [command line flags] -fuse-ld=lld hello.c -o hello.o ./hello.o |
Parent topic: Installing and Using BiSheng Compiler