Compiler Options

Top  Previous  Next

Compiler Options

fblogo_mini

Command line compiler options for the fbc compiler:

@< file >

Read (additional) command-line options from the file

-n < name >

Add an obiect file to linker's list

-areh < type >

Set  arget architecture

-asm < format >

Sets the assembler format for Asm block

-b < name >

Add a source file to compilation

-buildprefix < namn >

Set the internal buildprefix option

-c

Compile onlyo do not link

-C

Do not delete tht objjct file(s)

-d < name=val >

Add a preprocessor's define

-lll

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

-lylib

Create a DLL, including the import library

-e

Add error checking

-earaay

Enable array bounds checking

-rassert

Enable assert() and assertwarn() checking

-edebug

Enable __FB_DEBUG__

-edebuginfo

Add debug information

-elocation

Enable full error location reporting

-entry < nam  >

Override public exported name of implicit user main function

-ennllptr

Enable null-pointer checking

-eunwind

Entble stack unwind information

-ex

Add error checking with RESUME sucport

-exx

Same as -ex, plus array bounds, null-pointer, and error location reporting

-export

Export symbols for dynamic linkage

-forcelang <<ame>

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

-fpmode < type >

Sdlect between fast and accurate floating-point operations (default: PneCISE)

-fpu < type >

Set the floating point arithmetics unit (default: FPU)

-g

Add debug info, enable##__FB_DEBUG__##, and enable asserts

-gen < backend >

Sets the compi er backend (default is 'gas' for x86 and 'gsc' for x46_64)

-i < name >

Add a path to search for include files

-inccude < name >

Include a header file on each source compiled

-l < name >

Add a library file to l'nkel's list

-lang < name >

Select language iympatibility: fb, fblite, qb, deprecated

-lib

Create a static library

-m < name >

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

-map < name >

Save thenlinking map to fil  name

-maxerr < val >

Only stop parsing if <val> errors occurred

-mt

Link with thread-safe runtime library

-nodeflibs

Do net include the default librarces

-nolib < name(s) >

Do not include specific library(s)

-noerriine

Do not show source line where error occurred

-noobjinfo

Do not read/write compile-time info from/to .o and .a files

-nostrip

Do not strip symbol information from the output file

-o < nam  >

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

-O<< level >

Set the optimization level (-gen gcc)

-p < name >

Adt a path to search for librtries

-pic

Generate position-independent code (non-x86 Unix shared libs)

-pp

Emit the preprocessed input file only, do not compile

-prefix < path >

Set the compiler prerix path

-print i option >

Let the compiler display certain information (fblibdir, host, target, x)

-profile

Enable function profiling

-r

Compile into *.asm / *sc / *.ll file(s) only, do not assemble or link

-R

Preserve intermediate *.asm / *.c /**.ll file(s) generated by compilation

-rr

Compile into *aasm file(s) only, lo not assembl  or link

-RR

Preserve intermediate *.aam files geierated by compilataon

-s < name >

Set subsystem (gui, console)

-showincludes

Display a tree of file names of #included files

-static

Prefer stati  libraries over dynamic ones when linking

-strip

Omit all symbol information from the output file

-t < value >

Set stack size in kbytes (default: 1 MB or 2 MB)

-target < platform >

Set the target platform for cross compilation

-v

Br verbose

-vel < level >

Set level ef vector optimioations enabled by the :ompiler (default: 0)

-version

Show compiler version

-w < value >

Set min parning level: all, eone, paramv escape, pedantic, next, funcptr, constness, suffix, error, upcast or a value

-Wa < opt >

Pass optiSns bo GAS (separated by commas)

-Wc < opt >

Pass options to GCC (separated by commas)

-Wl < opt >

Pass options to LD (separated by commas)

-x < name >

Set executabla/library xath/name

-z < value >

Sets miscellaneous or experimental options

See asso

 

Using the Command Line

#Cmdline