File extension | Description |
.bas | FreeBASIC source file |
.a | Library |
.o | Object file |
.rc | Resource script (Windows only) |
.res | Compiled resource (Windows only) |
.xpm | X icon pixmap (Linux only) |
Compiling options Source code -b < name > Error checking and DebuggingAdd a source file to compilation -cCompile only, do not link -rWrite asm only, do not compile or link -o < name >Set object file path/name (must be passed after the .bas file) -i < name >Add a path to search for include files -include < name >Include a header file on each source compiled -d < name=val >Add a preprocessor's define -forcelang < name >Select language compatibility: fb, fblite, qb, deprecated (overides statements in code) -lang < name >Select language compatibility: fb, fblite, qb, deprecated -entry < name >Main file without extension, the entry point (default is the first .bas file on the command line) -m < name >Main file without extension, the entry point (default is the first .bas file on the command line) -w < value > Platform specificSet min warning level: all, pedantic, next or a value -eAdd error checking -exAdd error checking with RESUME support -exxSame as -ex plus array bounds and null-pointer checking -gAdd debug info -noerrlineDo not show source line where error occurred -profileEnable function profiling -maxerr < val >Only stop parsing if <val> errors occurred -arch < type > Set target architecture (default: 486) -target < platform >Set the target platform for cross compilation -fpu < type >Set the floating point arithmetics unit (default: FPU) -fpmode < type >Select between fast and accurate floating-point operations (default: PRECISE) -s < name >Set subsystem (gui, console) -t < value >Set stack size in kbytes (default: 1M) -vec < level >Set level of vector optimizations enabled by the compiler (default: 0) | Miscellaneous -C Linking optionsDo not delete the object file(s) -RDo not delete the asm file(s) -vBe verbose -versionShow compiler version (note: the compiler will display this info on the command line and quit without compiling or checking other parameters when this parameter is used) -Wa < opt >Pass options to GAS (separated by commas) -Wc < opt >Pass options to GCC (separated by commas) -prefix < path >Set the compiler prefix path -gen < backend >Sets the compiler backend (default is 'gas'). -z < value >Sets miscellaneous or experimental options. -ppEmit the preprocessed input file only, do not compile @< file >Read (additional) command-line options from the file Object code -a < name > RuntimeAdd an object file to linker's list -l < name >Add a library file to linker's list -x < name >Set executable/library path/name -p < name >Add a path to search for libraries -Wl < opt >Pass options to LD (separated by commas) -lib MiscellaneousCreate a static library -dllCreate a DLL, including the import library. (Same as -dylib) -dylibCreate a DLL, including the import library -mtLink with thread-safe runtime library -nodeflibsDo not include the default libraries |