Revision history for CompilerCmdLine
Revision [26728]
Last edited on 2024-01-07 14:11:13 by fxm [added link to compiler option: '-sysroot']Additions:
=={{fbdoc item="keyword" value="CompilerOptsysroot|-sysroot < path >"}}==
Deletions:
Additions:
Tell the linker where to find libraries (needed by some toolchains)
Additions:
=={{fbdoc item="keyword" value="CompilerOptsysroot|-sysroot"}}==
Additions:
Set min warning level: ##all##, ##none##, ##param##, ##escape##, ##pedantic##, ##next##, ##funcptr##, ##constness##, ##suffix##, ##error##, ##upcast## or a value
Deletions:
Revision [26123]
Edited on 2022-10-03 02:05:42 by fxm [added link to page 'Compiler Option: -nolib']Additions:
=={{fbdoc item="keyword" value="CompilerOptnolib|-nolib < name(s) >"}}==
Do not include specific library(s)
Do not include specific library(s)
Additions:
=={{fbdoc item="keyword" value="CompilerOptbuildprefix|-buildprefix < name >"}}==
Set the internal buildprefix option
Set the internal buildprefix option
Additions:
=={{fbdoc item="keyword" value="CompilerOptearray|-earray"}}==
Enable array bounds checking
=={{fbdoc item="keyword" value="CompilerOpteassert|-eassert"}}==
Enable assert() and assertwarn() checking
=={{fbdoc item="keyword" value="CompilerOptedebug|-edebug"}}==
Enable ##[[KeyPgDdfbdebug|__FB_DEBUG__]]##
=={{fbdoc item="keyword" value="CompilerOptedebuginfo|-edebuginfo"}}==
Add debug information
=={{fbdoc item="keyword" value="CompilerOptelocation|-elocation"}}==
Enable full error location reporting
=={{fbdoc item="keyword" value="CompilerOptenullptr|-enullptr"}}==
Enable null-pointer checking
=={{fbdoc item="keyword" value="CompilerOptnostrip|-nostrip"}}==
Do not strip symbol information from the output file
=={{fbdoc item="keyword" value="CompilerOptstrip|-strip"}}==
Omit all symbol information from the output file
Enable array bounds checking
=={{fbdoc item="keyword" value="CompilerOpteassert|-eassert"}}==
Enable assert() and assertwarn() checking
=={{fbdoc item="keyword" value="CompilerOptedebug|-edebug"}}==
Enable ##[[KeyPgDdfbdebug|__FB_DEBUG__]]##
=={{fbdoc item="keyword" value="CompilerOptedebuginfo|-edebuginfo"}}==
Add debug information
=={{fbdoc item="keyword" value="CompilerOptelocation|-elocation"}}==
Enable full error location reporting
=={{fbdoc item="keyword" value="CompilerOptenullptr|-enullptr"}}==
Enable null-pointer checking
=={{fbdoc item="keyword" value="CompilerOptnostrip|-nostrip"}}==
Do not strip symbol information from the output file
=={{fbdoc item="keyword" value="CompilerOptstrip|-strip"}}==
Omit all symbol information from the output file
Additions:
Set target architecture
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOpteunwind|-eunwind"}}==
Enable stack unwind information
Enable stack unwind information
Additions:
=={{fbdoc item="keyword" value="CompilerOptfpmode|-fpmode < type >"}}==
Deletions:
Additions:
- ##[[KeyPgPpcmdline|#cmdline]]##
Additions:
Define main file (without extension), the entry point (default is the first .bas file on the command line)
=={{fbdoc item="keyword" value="CompilerOptentry|-entry < name >"}}==
Override public exported name of implicit user main function
=={{fbdoc item="keyword" value="CompilerOptentry|-entry < name >"}}==
Override public exported name of implicit user main function
Deletions:
Revision [24802]
Edited on 2020-12-28 07:17:14 by fxm [default stack size doubled for 64-bit targets]Additions:
Set stack size in kbytes (default: 1 MB or 2 MB)
Deletions:
Additions:
Sets the compiler backend (default is 'gas' for x86 and 'gcc' for x86_64)
Deletions:
Revision [24309]
Edited on 2020-08-17 10:48:54 by fxm [invalid suffixes due to '-lang fb' are now pedantic warning only specified with '-w pedantic' or '-w suffix']Additions:
Set min warning level: ##all##, ##none##, ##param##, ##escape##, ##pedantic##, ##next##, ##funcptr##, ##constness##, ##suffix## or a value
Deletions:
Additions:
There is a simple command line option to compile a FB program into an executable with an Icon:
**""-""** Create a *.rc file, for example appicon.rc, with this info:
FB_PROGRAM_ICON ICON "appicon.ico"
(where appicon.ico is the name of icon)
**""-""** Then when compiling program, add appicon.rc in the list of files to compile.
Deletions:
- Create a *.rc file, for example appicon.rc, with this info:
FB_PROGRAM_ICON ICON "appicon.ico"
(where appicon.ico is the name of icon)
- Then when compiling program, add appicon.rc in the list of files to compile.
Revision [22814]
Edited on 2019-07-13 14:58:12 by JeffMarshall [change non-null-pointer to null-pointer]Additions:
Same as ##-ex##, plus array bounds, null-pointer, and error location reporting
Deletions:
Additions:
Set min warning level: ##all##, ##param##, ##escape##, ##pedantic##, ##next##, ##constness## or a value
Deletions:
Additions:
Display certain information (##fblibdir##, ##host##, ##target##, ##x##)
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptnoobjinfo|-noobjinfo"}}==
Do not read/write compile-time info from/to .o and .a files
Do not read/write compile-time info from/to .o and .a files
Additions:
Sets the compiler backend (default is 'gas')
Sets the assembler format for Asm block
Set the optimization level (-gen gcc)
Sets miscellaneous or experimental options
=={{fbdoc item="keyword" value="CompilerOptpic|-pic"}}==
Generate position-independent code (non-x86 Unix shared libs)
Show compiler version on the command line, do not compile or link
=={{fbdoc item="keyword" value="CompilerOptshowincludes|-showincludes"}}==
Display a tree of file names of #included files
Sets the assembler format for Asm block
Set the optimization level (-gen gcc)
Sets miscellaneous or experimental options
=={{fbdoc item="keyword" value="CompilerOptpic|-pic"}}==
Generate position-independent code (non-x86 Unix shared libs)
Show compiler version on the command line, do not compile or link
=={{fbdoc item="keyword" value="CompilerOptshowincludes|-showincludes"}}==
Display a tree of file names of #included files
Deletions:
Sets the assembler format for Asm block.
Set the optimization level (-gen gcc).
Sets miscellaneous or experimental options.
Show compiler version on the command line, do not compile or link.
Additions:
Same as ##-ex##, plus array bounds and non-null-pointer checking
Deletions:
Additions:
Select language mode: ##fb##, ##fblite##, ##qb##, ##deprecated## (overrides statements in code)
Deletions:
Additions:
Additions:
- [[CatPgCompOpt|Compiler Options]]
- [[CompilerInstalling|Installing FreeBASIC]]
- [[CompilerRunning|Invoking the FreeBASIC compiler]]
- [[CompilerInstalling|Installing FreeBASIC]]
- [[CompilerRunning|Invoking the FreeBASIC compiler]]
Deletions:
- [[CompilerInstalling Installing FreeBASIC]]
- [[CompilerRunning Invoking the FreeBASIC compiler]]
Revision [17797]
Edited on 2015-09-17 05:38:30 by FxMwikki [Added how to include an icon in a FB executable program]Additions:
FB_PROGRAM_ICON ICON "appicon.ico"
Deletions:
Revision [17796]
Edited on 2015-09-16 16:10:44 by FxMwikki [Added how to include an icon in a FB executable program]Additions:
(where appicon.ico is the name of icon)
- Then when compiling program, add appicon.rc in the list of files to compile.
- Then when compiling program, add appicon.rc in the list of files to compile.
Deletions:
(where appicon.ico is the name of your icon)
- Then when you compile your program, add appicon.rc in the list of files to compile.
Revision [17795]
Edited on 2015-09-16 14:20:56 by FxMwikki [Added how to include an icon in a FB executable program]Additions:
**Note:** How to include an icon in a FB executable program
There is a simple command line option to compile a FB program into an executable with an Icon:
- Create a *.rc file, for example appicon.rc, with this info:
FB_PROGRAM_ICON ICON DISCARDABLE "appicon.ico"
(where appicon.ico is the name of your icon)
- Then when you compile your program, add appicon.rc in the list of files to compile.
There is a simple command line option to compile a FB program into an executable with an Icon:
- Create a *.rc file, for example appicon.rc, with this info:
FB_PROGRAM_ICON ICON DISCARDABLE "appicon.ico"
(where appicon.ico is the name of your icon)
- Then when you compile your program, add appicon.rc in the list of files to compile.
Additions:
Sets the assembler format for Asm block.
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptasm|-asm < format >"}}==
Sets the assembler format.
Sets the assembler format.
Additions:
=={{fbdoc item="keyword" value="CompilerOptprint|-print < option >"}}==
Display certain information (##host##, ##target##, etc.)
Display certain information (##host##, ##target##, etc.)
Additions:
Compile into intermediate file(s) only, do not assemble or link
=={{fbdoc item="keyword" value="CompilerOptrr|-rr"}}==
Do not delete the intermediate file(s)
=={{fbdoc item="keyword" value="CompilerOptrrupp|-RR"}}==
=={{fbdoc item="keyword" value="CompilerOptrr|-rr"}}==
Do not delete the intermediate file(s)
=={{fbdoc item="keyword" value="CompilerOptrrupp|-RR"}}==
Additions:
At its simplest, **fbc** takes a source file as a command-line argument and produces an executable file. It does this by compiling the source file (.bas) into an assembly (.asm) file, then compiling this into an object file (.o) using GAS and finally linking using LD this object file to other object files and libraries it needs to run, producing the final executable file. The assembly and compiled object files are deleted at this point by default. For example, the following command,
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptstatic|-static"}}==
Prefer static libraries over dynamic ones when linking
Prefer static libraries over dynamic ones when linking
Deletions:
- Prefer static libraries over dynamic ones when linking
Additions:
{{fbdoc item="keyword" value="CompilerOptstatic|-static"}}
- Prefer static libraries over dynamic ones when linking
- Prefer static libraries over dynamic ones when linking
Additions:
Compile into asm file(s) only, do not assemble or link
Compile and assemble source file only, do not link
Compile and assemble source file only, do not link
Deletions:
Compile only, do not link
Additions:
<<{{fbdoc item="section" value="Source code"}}
=={{fbdoc item="keyword" value="CompilerOptb|-b < name >"}}==
Add a source file to compilation
=={{fbdoc item="keyword" value="CompilerOpti|-i < name >"}}==
Add a path to search for include files
=={{fbdoc item="keyword" value="CompilerOptinclude|-include < name >"}}==
Include a header file on each source compiled
=={{fbdoc item="keyword" value="CompilerOptd|-d < name=val >"}}==
Add a preprocessor's define
=={{fbdoc item="keyword" value="CompilerOptlang|-lang < name >"}}==
Select language mode: ##fb##, ##fblite##, ##qb##, ##deprecated##
=={{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang < name >"}}==
Select language mode: ##fb##, ##fblite##, ##qb##, ##deprecated## (overides statements in code)
{{fbdoc item="section" value="Code generation"}}
=={{fbdoc item="keyword" value="CompilerOpttarget|-target < platform >"}}==
Set the target platform for cross compilation
=={{fbdoc item="keyword" value="CompilerOptgen|-gen < backend >"}}==
Sets the compiler backend (default is 'gas').
=={{fbdoc item="keyword" value="CompilerOptarch|-arch < type >"}}==
Set target architecture (default: ##486##)
=={{fbdoc item="keyword" value="CompilerOptoptimization|-O < level >"}}==
Set the optimization level (-gen gcc).
=={{fbdoc item="keyword" value="CompilerOptvec|-vec < level >"}}==
Set level of vector optimizations enabled by the compiler (default: ##0##)
=={{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}==
Set the floating point arithmetics unit (default: ##FPU##)
=={{fbdoc item="keyword" value="compileroptfpmode|-fpmode < type >"}}==
Select between fast and accurate floating-point operations (default: ##PRECISE##)
=={{fbdoc item="keyword" value="CompilerOptz|-z < value >"}}==
Sets miscellaneous or experimental options.
{{fbdoc item="section" value="Compilation"}}
=={{fbdoc item="keyword" value="CompilerOptm|-m < name >"}}==
Main file without extension, the entry point (default is the first .bas file on the command line)
=={{fbdoc item="keyword" value="CompilerOptg|-g"}}==
Add debug info
=={{fbdoc item="keyword" value="CompilerOptprofile|-profile"}}==
Enable function profiling
=={{fbdoc item="keyword" value="CompilerOpte|-e"}}==
Add error checking
=={{fbdoc item="keyword" value="CompilerOptex|-ex"}}==
Add error checking with RESUME support
=={{fbdoc item="keyword" value="CompilerOptexx|-exx"}}==
Same as ##-ex## plus array bounds and null-pointer checking
=={{fbdoc item="keyword" value="CompilerOptWa|-Wa < opt >"}}==
Pass options to GAS (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptWc|-Wc < opt >"}}==
Pass options to GCC (separated by commas)
=={{fbdoc item="keyword" value="CompilerOpto|-o < name >"}}==
Set object file path/name (must be passed after the .bas file)
<<>>{{fbdoc item="section" value="Linking"}}
=={{fbdoc item="keyword" value="CompilerOpta|-a < name >"}}==
Add an object file to linker's list
=={{fbdoc item="keyword" value="CompilerOptl|-l < name >"}}==
Add a library file to linker's list
=={{fbdoc item="keyword" value="CompilerOptp|-p < name >"}}==
Add a path to search for libraries
=={{fbdoc item="keyword" value="CompilerOptmt|-mt"}}==
Link with thread-safe runtime library
=={{fbdoc item="keyword" value="CompilerOptnodeflibs|-nodeflibs"}}==
Do not include the default libraries
=={{fbdoc item="keyword" value="CompilerOptmap|-map < name >"}}==
Save the linking map to file name
=={{fbdoc item="keyword" value="CompilerOptWl|-Wl < opt >"}}==
Pass options to LD (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptexport|-export"}}==
Export symbols for dynamic linkage
=={{fbdoc item="keyword" value="CompilerOptlib|-lib"}}==
Create a static library
=={{fbdoc item="keyword" value="CompilerOptdylib|-dylib"}}==
Create a DLL, including the import library
=={{fbdoc item="keyword" value="CompilerOptdll|-dll"}}==
Create a DLL, including the import library. (Same as ##-dylib##)
=={{fbdoc item="keyword" value="CompilerOptx|-x < name >"}}==
Set executable/library path/name
{{fbdoc item="section" value="Behaviour"}}
=={{fbdoc item="keyword" value="CompilerOptprefix|-prefix < path >"}}==
Set the compiler prefix path
=={{fbdoc item="keyword" value="CompilerOptversion|-version"}}==
Show compiler version on the command line, do not compile or link.
=={{fbdoc item="keyword" value="CompilerOptv|-v"}}==
Be verbose
=={{fbdoc item="keyword" value="CompilerOptpp|-pp"}}==
Emit the preprocessed input file only, do not compile
=={{fbdoc item="keyword" value="CompilerOptr|-r"}}==
Write asm only, do not compile or link
=={{fbdoc item="keyword" value="CompilerOptc|-c"}}==
Compile only, do not link
=={{fbdoc item="keyword" value="CompilerOptrupp|-R"}}==
Do not delete the asm file(s)
=={{fbdoc item="keyword" value="CompilerOptcupp|-C"}}==
Do not delete the object file(s)
=={{fbdoc item="keyword" value="CompilerOptw|-w < value >"}}==
Set min warning level: ##all##, ##pedantic##, ##next## or a value
=={{fbdoc item="keyword" value="CompilerOptmaxerr|-maxerr < val >"}}==
Only stop parsing if <val> errors occurred
=={{fbdoc item="keyword" value="CompilerOptnoerrline|-noerrline"}}==
Do not show source line where error occurred
{{fbdoc item="section" value="Target specific"}}
=={{fbdoc item="keyword" value="CompilerOpts|-s < name >"}}==
Set subsystem (##gui##, ##console##)
=={{fbdoc item="keyword" value="CompilerOptt|-t < value >"}}==
Set stack size in kbytes (default: 1M)
{{fbdoc item="section" value="Meta"}}
=={{fbdoc item="keyword" value="CompilerOptoptfile|@< file >"}}==
Read (additional) command-line options from a file
=={{fbdoc item="keyword" value="CompilerOptb|-b < name >"}}==
Add a source file to compilation
=={{fbdoc item="keyword" value="CompilerOpti|-i < name >"}}==
Add a path to search for include files
=={{fbdoc item="keyword" value="CompilerOptinclude|-include < name >"}}==
Include a header file on each source compiled
=={{fbdoc item="keyword" value="CompilerOptd|-d < name=val >"}}==
Add a preprocessor's define
=={{fbdoc item="keyword" value="CompilerOptlang|-lang < name >"}}==
Select language mode: ##fb##, ##fblite##, ##qb##, ##deprecated##
=={{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang < name >"}}==
Select language mode: ##fb##, ##fblite##, ##qb##, ##deprecated## (overides statements in code)
{{fbdoc item="section" value="Code generation"}}
=={{fbdoc item="keyword" value="CompilerOpttarget|-target < platform >"}}==
Set the target platform for cross compilation
=={{fbdoc item="keyword" value="CompilerOptgen|-gen < backend >"}}==
Sets the compiler backend (default is 'gas').
=={{fbdoc item="keyword" value="CompilerOptarch|-arch < type >"}}==
Set target architecture (default: ##486##)
=={{fbdoc item="keyword" value="CompilerOptoptimization|-O < level >"}}==
Set the optimization level (-gen gcc).
=={{fbdoc item="keyword" value="CompilerOptvec|-vec < level >"}}==
Set level of vector optimizations enabled by the compiler (default: ##0##)
=={{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}==
Set the floating point arithmetics unit (default: ##FPU##)
=={{fbdoc item="keyword" value="compileroptfpmode|-fpmode < type >"}}==
Select between fast and accurate floating-point operations (default: ##PRECISE##)
=={{fbdoc item="keyword" value="CompilerOptz|-z < value >"}}==
Sets miscellaneous or experimental options.
{{fbdoc item="section" value="Compilation"}}
=={{fbdoc item="keyword" value="CompilerOptm|-m < name >"}}==
Main file without extension, the entry point (default is the first .bas file on the command line)
=={{fbdoc item="keyword" value="CompilerOptg|-g"}}==
Add debug info
=={{fbdoc item="keyword" value="CompilerOptprofile|-profile"}}==
Enable function profiling
=={{fbdoc item="keyword" value="CompilerOpte|-e"}}==
Add error checking
=={{fbdoc item="keyword" value="CompilerOptex|-ex"}}==
Add error checking with RESUME support
=={{fbdoc item="keyword" value="CompilerOptexx|-exx"}}==
Same as ##-ex## plus array bounds and null-pointer checking
=={{fbdoc item="keyword" value="CompilerOptWa|-Wa < opt >"}}==
Pass options to GAS (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptWc|-Wc < opt >"}}==
Pass options to GCC (separated by commas)
=={{fbdoc item="keyword" value="CompilerOpto|-o < name >"}}==
Set object file path/name (must be passed after the .bas file)
<<>>{{fbdoc item="section" value="Linking"}}
=={{fbdoc item="keyword" value="CompilerOpta|-a < name >"}}==
Add an object file to linker's list
=={{fbdoc item="keyword" value="CompilerOptl|-l < name >"}}==
Add a library file to linker's list
=={{fbdoc item="keyword" value="CompilerOptp|-p < name >"}}==
Add a path to search for libraries
=={{fbdoc item="keyword" value="CompilerOptmt|-mt"}}==
Link with thread-safe runtime library
=={{fbdoc item="keyword" value="CompilerOptnodeflibs|-nodeflibs"}}==
Do not include the default libraries
=={{fbdoc item="keyword" value="CompilerOptmap|-map < name >"}}==
Save the linking map to file name
=={{fbdoc item="keyword" value="CompilerOptWl|-Wl < opt >"}}==
Pass options to LD (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptexport|-export"}}==
Export symbols for dynamic linkage
=={{fbdoc item="keyword" value="CompilerOptlib|-lib"}}==
Create a static library
=={{fbdoc item="keyword" value="CompilerOptdylib|-dylib"}}==
Create a DLL, including the import library
=={{fbdoc item="keyword" value="CompilerOptdll|-dll"}}==
Create a DLL, including the import library. (Same as ##-dylib##)
=={{fbdoc item="keyword" value="CompilerOptx|-x < name >"}}==
Set executable/library path/name
{{fbdoc item="section" value="Behaviour"}}
=={{fbdoc item="keyword" value="CompilerOptprefix|-prefix < path >"}}==
Set the compiler prefix path
=={{fbdoc item="keyword" value="CompilerOptversion|-version"}}==
Show compiler version on the command line, do not compile or link.
=={{fbdoc item="keyword" value="CompilerOptv|-v"}}==
Be verbose
=={{fbdoc item="keyword" value="CompilerOptpp|-pp"}}==
Emit the preprocessed input file only, do not compile
=={{fbdoc item="keyword" value="CompilerOptr|-r"}}==
Write asm only, do not compile or link
=={{fbdoc item="keyword" value="CompilerOptc|-c"}}==
Compile only, do not link
=={{fbdoc item="keyword" value="CompilerOptrupp|-R"}}==
Do not delete the asm file(s)
=={{fbdoc item="keyword" value="CompilerOptcupp|-C"}}==
Do not delete the object file(s)
=={{fbdoc item="keyword" value="CompilerOptw|-w < value >"}}==
Set min warning level: ##all##, ##pedantic##, ##next## or a value
=={{fbdoc item="keyword" value="CompilerOptmaxerr|-maxerr < val >"}}==
Only stop parsing if <val> errors occurred
=={{fbdoc item="keyword" value="CompilerOptnoerrline|-noerrline"}}==
Do not show source line where error occurred
{{fbdoc item="section" value="Target specific"}}
=={{fbdoc item="keyword" value="CompilerOpts|-s < name >"}}==
Set subsystem (##gui##, ##console##)
=={{fbdoc item="keyword" value="CompilerOptt|-t < value >"}}==
Set stack size in kbytes (default: 1M)
{{fbdoc item="section" value="Meta"}}
=={{fbdoc item="keyword" value="CompilerOptoptfile|@< file >"}}==
Read (additional) command-line options from a file
Deletions:
{{fbdoc item="subsect" value="Source code"}}
=={{fbdoc item="keyword" value="CompilerOptb|-b < name >"}}==
Add a source file to compilation
=={{fbdoc item="keyword" value="CompilerOptc|-c"}}==
Compile only, do not link
=={{fbdoc item="keyword" value="CompilerOptr|-r"}}==
Write asm only, do not compile or link
=={{fbdoc item="keyword" value="CompilerOpto|-o < name >"}}==
Set object file path/name (must be passed after the .bas file)
=={{fbdoc item="keyword" value="CompilerOpti|-i < name >"}}==
Add a path to search for include files
=={{fbdoc item="keyword" value="CompilerOptinclude|-include < name >"}}==
Include a header file on each source compiled
=={{fbdoc item="keyword" value="CompilerOptd|-d < name=val >"}}==
Add a preprocessor's define
=={{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang < name >"}}==
Select language compatibility: ##fb##, ##fblite##, ##qb##, ##deprecated## (overides statements in code)
=={{fbdoc item="keyword" value="CompilerOptlang|-lang < name >"}}==
Select language compatibility: ##fb##, ##fblite##, ##qb##, ##deprecated##
=={{fbdoc item="keyword" value="CompilerOptm|-m < name >"}}==
Main file without extension, the entry point (default is the first .bas file on the command line)
{{fbdoc item="subsect" value="Error checking and Debugging"}}
=={{fbdoc item="keyword" value="CompilerOptw|-w < value >"}}==
Set min warning level: ##all##, ##pedantic##, ##next## or a value
=={{fbdoc item="keyword" value="CompilerOpte|-e"}}==
Add error checking
=={{fbdoc item="keyword" value="CompilerOptex|-ex"}}==
Add error checking with RESUME support
=={{fbdoc item="keyword" value="CompilerOptexx|-exx"}}==
Same as ##-ex## plus array bounds and null-pointer checking
=={{fbdoc item="keyword" value="CompilerOptg|-g"}}==
Add debug info
=={{fbdoc item="keyword" value="CompilerOptnoerrline|-noerrline"}}==
Do not show source line where error occurred
=={{fbdoc item="keyword" value="CompilerOptprofile|-profile"}}==
Enable function profiling
=={{fbdoc item="keyword" value="CompilerOptmaxerr|-maxerr < val >"}}==
Only stop parsing if <val> errors occurred
{{fbdoc item="subsect" value="Platform specific"}}
=={{fbdoc item="keyword" value="CompilerOptarch|-arch < type >"}}==
Set target architecture (default: ##486##)
=={{fbdoc item="keyword" value="CompilerOpttarget|-target < platform >"}}==
Set the target platform for cross compilation
=={{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}==
Set the floating point arithmetics unit (default: ##FPU##)
=={{fbdoc item="keyword" value="compileroptfpmode|-fpmode < type >"}}==
Select between fast and accurate floating-point operations (default: ##PRECISE##)
=={{fbdoc item="keyword" value="CompilerOpts|-s < name >"}}==
Set subsystem (##gui##, ##console##)
=={{fbdoc item="keyword" value="CompilerOptt|-t < value >"}}==
Set stack size in kbytes (default: 1M)
=={{fbdoc item="keyword" value="CompilerOptvec|-vec < level >"}}==
Set level of vector optimizations enabled by the compiler (default: ##0##)
<<>>{{fbdoc item="subsect" value="Miscellaneous"}}
=={{fbdoc item="keyword" value="CompilerOptcupp|-C"}}==
Do not delete the object file(s)
=={{fbdoc item="keyword" value="CompilerOptrupp|-R"}}==
Do not delete the asm file(s)
=={{fbdoc item="keyword" value="CompilerOptv|-v"}}==
Be verbose
=={{fbdoc item="keyword" value="CompilerOptversion|-version"}}==
Show 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)
=={{fbdoc item="keyword" value="CompilerOptWa|-Wa < opt >"}}==
Pass options to GAS (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptWc|-Wc < opt >"}}==
Pass options to GCC (separated by commas)
=={{fbdoc item="keyword" value="CompilerOptprefix|-prefix < path >"}}==
Set the compiler prefix path
=={{fbdoc item="keyword" value="CompilerOptgen|-gen < backend >"}}==
Sets the compiler backend (default is 'gas').
=={{fbdoc item="keyword" value="CompilerOptz|-z < value >"}}==
Sets miscellaneous or experimental options.
=={{fbdoc item="keyword" value="CompilerOptpp|-pp"}}==
Emit the preprocessed input file only, do not compile
=={{fbdoc item="keyword" value="CompilerOptoptfile|@< file >"}}==
Read (additional) command-line options from the file
{{fbdoc item="section" value="Linking options"}}
{{fbdoc item="subsect" value="Object code"}}
=={{fbdoc item="keyword" value="CompilerOpta|-a < name >"}}==
Add an object file to linker's list
=={{fbdoc item="keyword" value="CompilerOptl|-l < name >"}}==
Add a library file to linker's list
=={{fbdoc item="keyword" value="CompilerOptx|-x < name >"}}==
Set executable/library path/name
=={{fbdoc item="keyword" value="CompilerOptp|-p < name >"}}==
Add a path to search for libraries
=={{fbdoc item="keyword" value="CompilerOptWl|-Wl < opt >"}}==
Pass options to LD (separated by commas)
{{fbdoc item="subsect" value="Runtime"}}
=={{fbdoc item="keyword" value="CompilerOptlib|-lib"}}==
Create a static library
=={{fbdoc item="keyword" value="CompilerOptdll|-dll"}}==
Create a DLL, including the import library. (Same as ##-dylib##)
=={{fbdoc item="keyword" value="CompilerOptdylib|-dylib"}}==
Create a DLL, including the import library
=={{fbdoc item="keyword" value="CompilerOptmt|-mt"}}==
Link with thread-safe runtime library
=={{fbdoc item="keyword" value="CompilerOptnodeflibs|-nodeflibs"}}==
Do not include the default libraries
{{fbdoc item="subsect" value="Miscellaneous"}}
=={{fbdoc item="keyword" value="CompilerOptexport|-export"}}==
Export symbols for dynamic linkage
=={{fbdoc item="keyword" value="CompilerOptmap|-map < name >"}}==
Save the linking map to file name
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptWc|-Wc < opt >"}}==
Pass options to GCC (separated by commas)
Pass options to GCC (separated by commas)
Additions:
=={{fbdoc item="keyword" value="CompilerOptoptfile|@< file >"}}==
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptoptfile|@<file>"}}==
Read (additional) command-line options from the file
Read (additional) command-line options from the file
Additions:
=={{fbdoc item="keyword" value="CompilerOptpp|-pp"}}==
Emit the preprocessed input file only, do not compile
Emit the preprocessed input file only, do not compile
Additions:
{{fbdoc item="back" value="DocToc|Table of Contents"}}
Deletions:
Revision [14635]
Edited on 2010-06-15 11:31:54 by DkLwikki ["Back to Main" instead of "Back to TOC"]Additions:
{{fbdoc item="back" value="FBWiki|Main Page"}}
Deletions:
Additions:
=={{fbdoc item="keyword" value="compileroptfpmode|-fpmode < type >"}}==
Deletions:
Additions:
=={{fbdoc item="keyword" value="CompilerOptvec|-vec < level >"}}==
Set level of vector optimizations enabled by the compiler (default: ##0##)
Set level of vector optimizations enabled by the compiler (default: ##0##)
Additions:
Set the floating point arithmetics unit (default: ##FPU##)
=={{fbdoc item="keyword" value="CompilerOptfpmode|-fpmode < type >"}}==
Select between fast and accurate floating-point operations (default: ##PRECISE##)
<<>>{{fbdoc item="subsect" value="Miscellaneous"}}
{{fbdoc item="section" value="Linking options"}}
=={{fbdoc item="keyword" value="CompilerOptfpmode|-fpmode < type >"}}==
Select between fast and accurate floating-point operations (default: ##PRECISE##)
<<>>{{fbdoc item="subsect" value="Miscellaneous"}}
{{fbdoc item="section" value="Linking options"}}
Deletions:
<<>>{{fbdoc item="section" value="Linking options"}}
Additions:
Show 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)
Deletions:
Additions:
The official ""FreeBASIC"" distribution comes with **fbc**, ""FreeBASIC""'s flagship compiler. **fbc** is a command line compiler, and can be launched from the console - from DOS, the Windows command prompt or a Linux shell. Running **fbc** from the console without any arguments displays a list of available options, or command-line switches, that can be used to adjust the behavior of the compiler.
=={{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang < name >"}}==
Select language compatibility: ##fb##, ##fblite##, ##qb##, ##deprecated## (overides statements in code)
=={{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}==
=={{fbdoc item="keyword" value="CompilerOptforcelang|-forcelang < name >"}}==
Select language compatibility: ##fb##, ##fblite##, ##qb##, ##deprecated## (overides statements in code)
=={{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}==
Deletions:
{{fbdoc item="keyword" value="CompilerOptfpu|-fpu < type >"}}
Additions:
=={{fbdoc item="keyword" value="CompilerOptgen|-gen < backend >"}}==
Sets the compiler backend (default is 'gas').
=={{fbdoc item="keyword" value="CompilerOptz|-z < value >"}}==
Sets miscellaneous or experimental options.
Sets the compiler backend (default is 'gas').
=={{fbdoc item="keyword" value="CompilerOptz|-z < value >"}}==
Sets miscellaneous or experimental options.