fsharpc1
Manual page for f# 3.0 compiler (open source edition)
Usage
fsharpc [options ...]
file
[file ...]
Overview
Compiler for the F# language, version 3.0
Options
Output files
|
Name of the output file |
|---|---|
|
Build a console executable |
|
Build a Windows executable |
|
Build a library |
|
Build a module that can be added to another assembly |
-
--delaysign[+|-] -
Delay-sign the assembly using only the public portion of the strong name key
--doc:file-
Write the xmldoc of the assembly to the given file
--keyfile:file-
Specify a strong name key file
--keycontainer:string-
Specify a strong name key container
--platform:string-
Limit which platforms this code can run on: x86, Itanium, x64, anycpu32bitpreferred, or anycpu.
The default is anycpu.
-
--nooptimizationdata -
Only include optimization information essential for implementing inlined constructs. Inhibits cross-module inlining but improves binary compatibility.
-
--nointerfacedata -
Don't add a resource to the generated assembly containing F#-specific metadata
--sig:file-
Print the inferred interface of the assembly to a file
Input files
--reference:file,-rfile-
Reference an assembly
Resources
|
Specify a Win32 resource file (.res) |
|---|---|
|
Specify a Win32 manifest file |
-
--nowin32manifest -
Do not include the default Win32 manifest
|
Embed the specified managed resource |
|---|---|
|
Link the specified resource to this assembly |
Code generation
-
--debug[+|-], -g -
Emit debug information
--debug:[full|pdbonly]-
Specify debugging type: full, pdbonly. full is the default and enables attaching a debugger to a running program.
-
--optimize[+|-], -O -
Enable optimizations
-
--tailcalls[+|-] -
Enable tailcalls
-
--crossoptimize[+|-] -
Enable cross-module optimizations
Errors and warnings
-
--warnaserror[+|-] -
Report all warnings as errors
|
Report specific warnings as errors |
|---|---|
|
Set a warning level (0-5) |
|
Disable specific warning messages |
|
Enable specific warnings that may be off by default |
-
--consolecolors[+|-] -
Output warning and error messages in color
Language
-
--checked[+|-] -
Generate overflow checks
--define:string,-dstring-
Define conditional compilation symbols
-
--mlcompatibility -
Ignore ML compatibility warnings
Miscellaneous
-
--nologo -
Suppress compiler copyright message
-
--help, -? -
Display this usage message
Advanced
--codepage:n-
Specify the codepage used to read source files
-
--utf8output -
Output messages in UTF-8 encoding
-
--fullpaths -
Output messages with fully qualified paths
--lib:dir[;dir[;...]],-Idir[;dir[;...]]-
Specify a directory for the include path which is used to resolve source files and assemblies
--baseaddress:address-
Base address for the library to be built
-
--noframework -
Do not reference the default CLI assemblies by default
-
--standalone -
Statically link the F# library and all referenced DLLs that depend on it into the assembly being generated
--staticlink:assembly-
Statically link the given assembly and all referenced DLLs that depend on this assembly. Use an assembly name e.g. mylib, not a DLL name.
-
--resident -
Use a resident background compilation service to improve compiler startup times.
--pdb:file-
Name the output debug file
-
--simpleresolution -
Resolve assembly references using directory-based rules rather than MSBuild resolution
-
--highentropyva[+|-] -
Enable high-entropy ASLR
--subsystemversion:string-
Specify subsystem version of this assembly
Releases
Unchanged in 2 releases since Debian 8 (Jessie).