Skip to content

Instantly share code, notes, and snippets.

@monperrus
Created March 17, 2024 06:33
Show Gist options
  • Save monperrus/69852f8cc00ad3b1e1e5ca2350e79d2e to your computer and use it in GitHub Desktop.
Save monperrus/69852f8cc00ad3b1e1e5ca2350e79d2e to your computer and use it in GitHub Desktop.
mlton --help mlton-20210117-1.amd64-linux-glibc2.23/bin/mlton
$ mlton --help
MLton 20210117
usage: mlton [option ...] file.{c|mlb|o|sml} [file.{c|o|s|S} ...]
-align {8|4} object alignment
-as-opt <opt> pass option to assembler
-cc-opt <opt> pass option to C compiler
-codegen {native|amd64|c|llvm} which code generator to use
-const '<name> <value>' set compile-time constant
-default-ann <ann> set annotation default for mlb files
-default-type '<ty><N>' set default type
-disable-ann <ann> disable annotation in mlb files
-export-header <file> write C header file for _export's
-ieee-fp {false|true} use strict IEEE floating-point
-inline <n> set inlining threshold
-keep {g|o} save intermediate files
-link-opt <opt> pass option to linker
-llvm-as-opt <opt> pass option to llvm assembler
-llvm-llc-opt <opt> pass option to llvm compiler
-llvm-opt-opt <opt> pass option to llvm optimizer
-mlb-path-map <file> additional MLB path map
-mlb-path-var '<name> <value>' additional MLB path var
-output <file> name of output file
-profile {no|alloc|count|time} produce executable suitable for profiling
-profile-branch {false|true} profile branches in addition to functions
-profile-stack {false|true} profile the stack
-profile-val {false|true} profile val bindings in addition to functions
-runtime <arg> pass arg to runtime via @MLton
-show-basis <file> write final basis environment
-show-def-use <file> write def-use information
-stop {f|g|o|tc} when to stop
-target {self} platform that executable will run on
-target-as-opt <target> <opt> target-dependent assembler option
-target-cc-opt <target> <opt> target-dependent C compiler option
-target-link-opt <target> <opt> target-dependent linker option
-verbose {0|1|2|3} how verbose to be
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment