Compiler Options
 
Command line compiler options for the fbc compiler:
    • Read (additional) command-line options from the file
    • Add an object file to linker's list
    • Set target architecture
    • Sets the assembler format for Asm block
    • Add a source file to compilation
    • Set the internal buildprefix option
    • Compile only, do not link
    • Do not delete the object file(s)
    • Add a preprocessor's define
    • Create a DLL, including the import library. (Same as -dylib)
    • Create a DLL, including the import library
    • Add error checking
    • Enable array bounds checking
    • Enable assert() and assertwarn() checking
    • Add debug information
    • Enable full error location reporting
    • Override public exported name of implicit user main function
    • Enable null-pointer checking
    • Enable stack unwind information
    • Add error checking with RESUME support
    • Same as -ex, plus array bounds, null-pointer, and error location reporting
    • Export symbols for dynamic linkage
    • Select language compatibility, overriding #lang/$lang in code
    • Select between fast and accurate floating-point operations (default: PRECISE)
    • Set the floating point arithmetics unit (default: FPU)
    • Add debug info, enable##__FB_DEBUG__##, and enable asserts
    • Sets the compiler backend (default is 'gas' for x86 and 'gcc' for x86_64)
    • Add a path to search for include files
    • Include a header file on each source compiled
    • Add a library file to linker's list
    • Select language compatibility: fb, fblite, qb, deprecated
    • Create a static library
    • Define main file (without extension), the entry point (default is the first .bas file on the command line)
    • Save the linking map to file name
    • Only stop parsing if <val> errors occurred
    • Link with thread-safe runtime library
    • Do not include the default libraries
    • Do not include specific library(s)
    • Do not show source line where error occurred
    • Do not read/write compile-time info from/to .o and .a files
    • Do not strip symbol information from the output file
    • Set object file path/name (must be passed after the .bas file)
    • Set the optimization level (-gen gcc)
    • Add a path to search for libraries
    • Generate position-independent code (non-x86 Unix shared libs)
    • Emit the preprocessed input file only, do not compile
    • Set the compiler prefix path
    • Let the compiler display certain information (fblibdir, host, target, x)
    • Enable function profiling
    • Compile into *.asm / *.c / *.ll file(s) only, do not assemble or link
    • Preserve intermediate *.asm / *.c / *.ll file(s) generated by compilation
    • Compile into *.asm file(s) only, do not assemble or link
    • Preserve intermediate *.asm files generated by compilation
    • Set subsystem (gui, console)
    • Display a tree of file names of #included files
    • Prefer static libraries over dynamic ones when linking
    • Omit all symbol information from the output file
    • Set stack size in kbytes (default: 1 MB or 2 MB)
    • Set the target platform for cross compilation
    • Be verbose
    • Set level of vector optimizations enabled by the compiler (default: 0)
    • Show compiler version
    • Set min warning level: all, none, param, escape, pedantic, next, funcptr, constness, suffix, error, upcast or a value
    • Pass options to GAS (separated by commas)
    • Pass options to GCC (separated by commas)
    • Pass options to LD (separated by commas)
    • Set executable/library path/name
    • Sets miscellaneous or experimental options

See also