Compiler Options
Command line compiler options for the fbc compiler:
@< file >

- Read (additional) command-line options from the file

-a < name >

- Add an object file to linker's list

-arch < type >

- Set target architecture (default: 486)

-b < name >

- Add a source file to compilation

-c

- Compile only, do not link

-C

- Do not delete the object file(s)

-d < name=val >

- Add a preprocessor's define

-dll

- Create a DLL, including the import library. (Same as `-dylib`)

-dylib

- Create a DLL, including the import library

-entry < name >

- Main file without extension, the entry point (default is the first .bas file on the command line)

-e

- Add error checking

-ex

- Add error checking with RESUME support

-exx

- Same as -ex plus array bounds and null-pointer checking

-export

- Export symbols for dynamic linkage

-forcelang <name>

- Select language compatibility, overriding #lang/$lang in code

-fpmode < type >

- Select between fast and accurate floating-point operations (default: PRECISE)

-fpu < type >

- Set the floating point arithmetics unit (default: FPU)

-g

- Add debug info

-gen < backend >

- Sets the compiler backend (default is 'gas')

-i < name >

- Add a path to search for include files

-include < name >

- Include a header file on each source compiled

-l < name >

- Add a library file to linker's list

-lang < name >

- Select language compatibility: `fb`, `fblite`, `qb`, `deprecated`

-lib

- Create a static library

-m < name >

- Main file without extension, the entry point (default is the first .bas file on the command line)

-map < name >

- Save the linking map to file name

-maxerr < val >

- Only stop parsing if <val> errors occurred

-mt

- Link with thread-safe runtime library

-nodeflibs

- Do not include the default libraries

-noerrline

- Do not show source line where error occurred

-o < name >

- Set object file path/name (must be passed after the .bas file)

-p < name >

- Add a path to search for libraries

-pp

- Emit the preprocessed input file only, do not compile

-prefix < path >

- Set the compiler prefix path

-profile

- Enable function profiling

-r

- Write asm file(s) only, do not compile or link

-R

- Do not delete the asm file(s)

-s < name >

- Set subsystem (`gui`, `console`)

-target < platform >

- Set the target platform for cross compilation

-t < value >

- Set stack size in kbytes (default: 1M)

-v

- Be verbose

-vec < level >

- Set level of vector optimizations enabled by the compiler (default: 0)

-version

- Show compiler version

-w < value >

- Set min warning level: all, pedantic or a value

-Wa < opt >

- Pass options to GAS (separated by commas)

-Wl < opt >

- Pass options to LD (separated by commas)

-x < name >

- Set executable/library path/name

-z < value >

- Sets miscellaneous or experimental options

See also

- Using the Command Line