Programming

F# 파일 하나로 컴파일하기

steloflute 2021. 5. 19. 17:08

F# 프로그램을 컴파일할 때,

 

fsc.exe a.fs

또는 스크립트 파일

fsc.exe a.fsx

하면

a.exe 실행파일과

2MB 정도의 FSharp.Core.dll 이 생성된다.

 

fsc.exe --standalone a.fs

하면 .exe 파일 하나로 만들어진다. 그리고 크기도 위 dll 파일을 더한 것보다 작게 나온다. (1.4MB 정도 추가됨) (.NET은 있어야 함)

 

Compiler Options - F# | Microsoft Docs

 

Compiler Options - F#

Use F# compiler command-line options to control the compilation of your F# apps and libraries.

docs.microsoft.com