Scroll to navigation

FSHARPC(1) User Commands FSHARPC(1)

NAME

fsharpc - manual page for F# 3.0 Compiler (Open Source Edition)

DESCRIPTION

Compiler for the F# language, version 3.0

SYNOPSIS

fsharpc [options...] file [file...]

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
Delay-sign the assembly using only the public portion of the strong name key
Write the xmldoc of the assembly to the given file
Specify a strong name key file
Specify a strong name key container
Limit which platforms this code can run on: x86, Itanium, x64, anycpu32bitpreferred, or anycpu.

The default is anycpu.

Only include optimization information essential for implementing inlined constructs. Inhibits cross-module inlining but improves binary compatibility.
Don't add a resource to the generated assembly containing F#-specific metadata
Print the inferred interface of the assembly to a file

INPUT FILES

Reference an assembly

RESOURCES

Specify a Win32 resource file (.res)
Specify a Win32 manifest file
Do not include the default Win32 manifest
Embed the specified managed resource
Link the specified resource to this assembly

CODE GENERATION

Emit debug information
Specify debugging type: full, pdbonly. full is the default and enables attaching a debugger to a running program.
Enable optimizations
Enable tailcalls
Enable cross-module optimizations

ERRORS AND WARNINGS

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
Output warning and error messages in color

LANGUAGE

Generate overflow checks
Define conditional compilation symbols
Ignore ML compatibility warnings

MISCELLANEOUS

Suppress compiler copyright message
Display this usage message

ADVANCED

Specify the codepage used to read source files
Output messages in UTF-8 encoding
Output messages with fully qualified paths
Specify a directory for the include path which is used to resolve source files and assemblies
Base address for the library to be built
Do not reference the default CLI assemblies by default
Statically link the F# library and all referenced DLLs that depend on it into the assembly being generated
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.
Use a resident background compilation service to improve compiler startup times.
Name the output debug file
Resolve assembly references using directory-based rules rather than MSBuild resolution
Enable high-entropy ASLR
Specify subsystem version of this assembly
February 2014 fsharpc 3.0.34