1 <?xml version="1.0" encoding="iso-8859-1"?>
2 <sect1 id="flag-reference">
3 <title>Flag reference</title>
5 <para>This section is a quick-reference for GHC's command-line
6 flags. For each flag, we also list its static/dynamic status (see
7 <xref linkend="static-dynamic-flags"/>), and the flag's opposite
11 <title>Help and verbosity options</title>
13 <para><xref linkend="options-help"/></para>
16 <tgroup cols="3" align="left" colsep="1" rowsep="1">
20 <entry>Description</entry>
21 <entry>Static/Dynamic</entry>
22 <entry>Reverse</entry>
27 <entry><option>-?</option></entry>
33 <entry><option>-help</option></entry>
39 <entry><option>-v</option></entry>
40 <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
41 <entry>dynamic</entry>
45 <entry><option>-v</option><replaceable>n</replaceable></entry>
46 <entry>set verbosity level</entry>
47 <entry>dynamic</entry>
51 <entry><option>-V</option></entry>
52 <entry>display GHC version</entry>
57 <entry><option>––version</option></entry>
58 <entry>display GHC version</entry>
63 <entry><option>––numeric-version</option></entry>
64 <entry>display GHC version (numeric only)</entry>
69 <entry><option>––print-libdir</option></entry>
70 <entry>display GHC library directory</entry>
75 <entry><option>-ferror-spans</option></entry>
76 <entry>output full span in error messages</entry>
86 <title>Which phases to run</title>
88 <para><xref linkend="options-order"/></para>
91 <tgroup cols="3" align="left" colsep="1" rowsep="1">
95 <entry>Description</entry>
96 <entry>Static/Dynamic</entry>
97 <entry>Reverse</entry>
102 <entry><option>-E</option></entry>
103 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
108 <entry><option>-C</option></entry>
109 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
114 <entry><option>-S</option></entry>
115 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
120 <entry><option>-c</option></entry>
121 <entry>Do not link</entry>
122 <entry>dynamic</entry>
126 <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
127 <entry>Override default behaviour for source files</entry>
128 <entry>static</entry>
137 <title>Alternative modes of operation</title>
139 <para><xref linkend="modes"/></para>
142 <tgroup cols="3" align="left" colsep="1" rowsep="1">
146 <entry>Description</entry>
147 <entry>Static/Dynamic</entry>
148 <entry>Reverse</entry>
153 <entry><option>--interactive</option></entry>
154 <entry>Interactive mode - normally used by just running <command>ghci</command></entry>
159 <entry><option>--make</option></entry>
160 <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>.</entry>
165 <entry><option>-e <replaceable>expr</replaceable></option></entry>
166 <entry>Evaluate <replaceable>expr</replaceable></entry>
171 <entry><option>-M</option></entry>
172 <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>.</entry>
182 <title>Redirecting output</title>
184 <para><xref linkend="options-output"/></para>
187 <tgroup cols="3" align="left" colsep="1" rowsep="1">
191 <entry>Description</entry>
192 <entry>Static/Dynamic</entry>
193 <entry>Reverse</entry>
198 <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
199 <entry>set the suffix to use for intermediate C files</entry>
200 <entry>dynamic</entry>
204 <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
205 <entry>set directory for interface files</entry>
206 <entry>dynamic</entry>
210 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
211 <entry>set the suffix to use for interface files</entry>
212 <entry>dynamic</entry>
216 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
217 <entry>set output filename</entry>
218 <entry>dynamic</entry>
222 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
223 <entry>set output directory</entry>
224 <entry>dynamic</entry>
228 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
229 <entry>set the filename in which to put the interface</entry>
230 <entry>dynamic</entry>
234 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
235 <entry>set the output file suffix</entry>
236 <entry>dynamic</entry>
240 <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
241 <entry>redirect FFi stub files</entry>
242 <entry>dynamic</entry>
251 <title>Keeping intermediate files</title>
253 <para><xref linkend="keeping-intermediates"/></para>
256 <tgroup cols="3" align="left" colsep="1" rowsep="1">
260 <entry>Description</entry>
261 <entry>Static/Dynamic</entry>
262 <entry>Reverse</entry>
267 <entry><option>-keep-hc-file</option></entry>
268 <entry>retain intermediate <literal>.hc</literal> files</entry>
269 <entry>dynamic</entry>
273 <entry><option>-keep-s-file</option></entry>
274 <entry>retain intermediate <literal>.s</literal> files</entry>
275 <entry>dynamic</entry>
279 <entry><option>-keep-raw-s-file</option></entry>
280 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
281 <entry>dynamic</entry>
285 <entry><option>-keep-tmp-files</option></entry>
286 <entry>retain all intermediate temporary files</entry>
287 <entry>dynamic</entry>
296 <title>Temporary files</title>
298 <para><xref linkend="temp-files"/></para>
301 <tgroup cols="3" align="left" colsep="1" rowsep="1">
305 <entry>Description</entry>
306 <entry>Static/Dynamic</entry>
307 <entry>Reverse</entry>
312 <entry><option>-tmpdir</option></entry>
313 <entry>set the directory for temporary files</entry>
314 <entry>dynamic</entry>
323 <title>Finding imports</title>
325 <para><xref linkend="search-path"/></para>
328 <tgroup cols="3" align="left" colsep="1" rowsep="1">
333 <entry>Description</entry>
334 <entry>Static/Dynamic</entry>
335 <entry>Reverse</entry>
340 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
341 <entry>add <replaceable>dir</replaceable>,
342 <replaceable>dir2</replaceable>, etc. to import path</entry>
343 <entry>dynamic</entry>
347 <entry><option>-i</option></entry>
348 <entry>Empty the import directory list</entry>
349 <entry>dynamic</entry>
358 <title>Interface file options</title>
360 <para><xref linkend="hi-options"/></para>
363 <tgroup cols="3" align="left" colsep="1" rowsep="1">
368 <entry>Description</entry>
369 <entry>Static/Dynamic</entry>
370 <entry>Reverse</entry>
375 <entry><option>-ddump-hi</option></entry>
376 <entry>Dump the new interface to stdout</entry>
377 <entry>dynamic</entry>
381 <entry><option>-ddump-hi-diffs</option></entry>
382 <entry>Show the differences vs. the old interface</entry>
383 <entry>dynamic</entry>
387 <entry><option>-ddump-minimal-imports</option></entry>
388 <entry>Dump a minimal set of imports</entry>
389 <entry>dynamic</entry>
393 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
394 <entry>Read the interface in
395 <replaceable>file</replaceable> and dump it as text to
396 <literal>stdout</literal>.</entry>
406 <title>Recompilation checking</title>
408 <para><xref linkend="recomp"/></para>
411 <tgroup cols="3" align="left" colsep="1" rowsep="1">
416 <entry>Description</entry>
417 <entry>Static/Dynamic</entry>
418 <entry>Reverse</entry>
423 <entry><option>-no-recomp</option></entry>
424 <entry>Turn off recompilation checking; implied by any
425 <option>-ddump-X</option> option</entry>
426 <entry>dynamic</entry>
427 <entry><option>-recomp</option></entry>
435 <title>Interactive-mode options</title>
437 <para><xref linkend="ghci-dot-files"/></para>
440 <tgroup cols="3" align="left" colsep="1" rowsep="1">
444 <entry>Description</entry>
445 <entry>Static/Dynamic</entry>
446 <entry>Reverse</entry>
451 <entry><option>-ignore-dot-ghci</option></entry>
452 <entry>Disable reading of <filename>.ghci</filename> files</entry>
453 <entry>static</entry>
457 <entry><option>-read-dot-ghci</option></entry>
458 <entry>Enable reading of <filename>.ghci</filename> files</entry>
459 <entry>static</entry>
468 <title>Packages</title>
470 <para><xref linkend="packages"/></para>
473 <tgroup cols="3" align="left" colsep="1" rowsep="1">
477 <entry>Description</entry>
478 <entry>Static/Dynamic</entry>
479 <entry>Reverse</entry>
484 <entry><option>-package</option> <replaceable>P</replaceable></entry>
485 <entry>Expose package <replaceable>P</replaceable></entry>
486 <entry>dynamic</entry>
490 <entry><option>-hide-all-packages</option></entry>
491 <entry>Hide all packages by default</entry>
492 <entry>static</entry>
496 <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
497 <entry>Hide package <replaceable>P</replaceable></entry>
498 <entry>dynamic</entry>
502 <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
503 <entry>Ignore package <replaceable>P</replaceable></entry>
504 <entry>dynamic</entry>
508 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
509 <entry>Load more packages from <replaceable>file</replaceable></entry>
510 <entry>dynamic</entry>
514 <entry><option>-no-user-package-conf</option></entry>
515 <entry>Don't load the user's package config file.</entry>
516 <entry>dynamic</entry>
525 <title>Language options</title>
527 <para><xref linkend="options-language"/></para>
530 <tgroup cols="3" align="left" colsep="1" rowsep="1">
534 <entry>Description</entry>
535 <entry>Static/Dynamic</entry>
536 <entry>Reverse</entry>
541 <entry><option>-fallow-overlapping-instances</option></entry>
542 <entry>Enable overlapping instances</entry>
543 <entry>dynamic</entry>
544 <entry><option>-fno-allow-overlapping-instances</option></entry>
547 <entry><option>-fallow-undecidable-instances</option></entry>
548 <entry>Enable undecidable instances</entry>
549 <entry>dynamic</entry>
550 <entry><option>-fno-allow-undecidable-instances</option></entry>
553 <entry><option>-fallow-incoherent-instances</option></entry>
554 <entry>Enable incoherent instances.
555 Implies <option>-fallow-overlapping-instances</option> </entry>
556 <entry>dynamic</entry>
557 <entry><option>-fno-allow-incoherent-instances</option></entry>
560 <entry><option>-farrows</option></entry>
561 <entry>Enable arrow notation extension</entry>
562 <entry>dynamic</entry>
563 <entry><option>-fno-arrows</option></entry>
566 <entry><option>-fcontext-stack</option><replaceable>n</replaceable></entry>
567 <entry>set the limit for context reduction</entry>
568 <entry>static</entry>
569 <entry><option>-</option></entry>
572 <entry><option>-ffi</option> or <option>-fffi</option></entry>
573 <entry>Enable foreign function interface (implied by
574 <option>-fglasgow-exts</option>)</entry>
575 <entry>dynamic</entry>
576 <entry><option>-fno-ffi</option></entry>
579 <entry><option>-fgenerics</option></entry>
580 <entry>Enable generics</entry>
581 <entry>dynamic</entry>
582 <entry><option>-fno-fgenerics</option></entry>
585 <entry><option>-fglasgow-exts</option></entry>
586 <entry>Enable most language extensions</entry>
587 <entry>dynamic</entry>
588 <entry><option>-fno-glasgow-exts</option></entry>
591 <entry><option>-fimplicit-params</option></entry>
592 <entry>Enable Implicit Parameters.
593 Implied by <option>-fglasgow-exts</option>.</entry>
594 <entry>dynamic</entry>
595 <entry><option>-fno-implicit-params</option></entry>
598 <entry><option>-firrefutable-tuples</option></entry>
599 <entry>Make tuple pattern matching irrefutable</entry>
600 <entry>dynamic</entry>
601 <entry><option>-fno-irrefutable-tuples</option></entry>
604 <entry><option>-fno-implicit-prelude</option></entry>
605 <entry>Don't implicitly <literal>import Prelude</literal></entry>
606 <entry>dynamic</entry>
607 <entry><option>-fimplicit-prelude</option></entry>
610 <entry><option>-fno-monomorphism-restriction</option></entry>
611 <entry>Disable the monomorphism restriction</entry>
612 <entry>dynamic</entry>
613 <entry><option>-fmonomorphism-restriction</option></entry>
616 <entry><option>-fscoped-type-variables</option></entry>
617 <entry>Enable lexically-scoped type variables.
618 Implied by <option>-fglasgow-exts</option>.</entry>
619 <entry>dynamic</entry>
620 <entry><option>-fno-scoped-type-variables</option></entry>
623 <entry><option>-fth</option></entry>
624 <entry>Enable Template Haskell.
625 Implied by <option>-fglasgow-exts</option>.</entry>
626 <entry>dynamic</entry>
627 <entry><option>-fno-th</option></entry>
635 <title>Warnings</title>
637 <para>(<xref linkend="options-sanity"/></para>
640 <tgroup cols="3" align="left" colsep="1" rowsep="1">
644 <entry>Description</entry>
645 <entry>Static/Dynamic</entry>
646 <entry>Reverse</entry>
651 <entry><option>-W</option></entry>
652 <entry>enable normal warnings</entry>
653 <entry>dynamic</entry>
654 <entry><option>-w</option></entry>
657 <entry><option>-w</option></entry>
658 <entry>disable all warnings</entry>
659 <entry>dynamic</entry>
663 <entry><option>-Wall</option></entry>
664 <entry>enable all warnings</entry>
665 <entry>dynamic</entry>
666 <entry><option>-w</option></entry>
669 <entry><option>-Werror</option></entry>
670 <entry>make warnings fatal</entry>
671 <entry>dynamic</entry>
676 <entry><option>-fwarn-deprecations</option></entry>
677 <entry>warn about uses of functions & types that are deprecated</entry>
678 <entry>dynamic</entry>
679 <entry><option>-fno-warn-deprecations</option></entry>
683 <entry><option>-fwarn-duplicate-exports</option></entry>
684 <entry>warn when an entity is exported multiple times</entry>
685 <entry>dynamic</entry>
686 <entry><option>-fno-warn-duplicate-exports</option></entry>
690 <entry><option>-fwarn-hi-shadowing</option></entry>
691 <entry>warn when a <literal>.hi</literal> file in the
692 current directory shadows a library</entry>
693 <entry>dynamic</entry>
694 <entry><option>-fno-warn-hi-shadowing</option></entry>
698 <entry><option>-fwarn-incomplete-patterns</option></entry>
699 <entry>warn when a pattern match could fail</entry>
700 <entry>dynamic</entry>
701 <entry><option>-fno-warn-incomplete-patterns</option></entry>
705 <entry><option>-fwarn-incomplete-record-updates</option></entry>
706 <entry>warn when a record update could fail</entry>
707 <entry>dynamic</entry>
708 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
712 <entry><option>-fwarn-misc</option></entry>
713 <entry>enable miscellaneous warnings</entry>
714 <entry>dynamic</entry>
715 <entry><option>-fno-warn-misc</option></entry>
719 <entry><option>-fwarn-missing-fields</option></entry>
720 <entry>warn when fields of a record are uninitialised</entry>
721 <entry>dynamic</entry>
722 <entry><option>-fno-warn-missing-fields</option></entry>
726 <entry><option>-fwarn-missing-methods</option></entry>
727 <entry>warn when class methods are undefined</entry>
728 <entry>dynamic</entry>
729 <entry><option>-fno-warn-missing-methods</option></entry>
733 <entry><option>-fwarn-missing-signatures</option></entry>
734 <entry>warn about top-level functions without signatures</entry>
735 <entry>dynamic</entry>
736 <entry><option>-fno-warn-missing-signatures</option></entry>
740 <entry><option>-fwarn-name-shadowing</option></entry>
741 <entry>warn when names are shadowed</entry>
742 <entry>dynamic</entry>
743 <entry><option>-fno-warn-name-shadowing</option></entry>
747 <entry><option>-fwarn-oprhans</option></entry>
748 <entry>warn when the module contains "orphan" instance declarations
749 or rewrite rules</entry>
750 <entry>dynamic</entry>
751 <entry><option>-fno-warn-orphans</option></entry>
755 <entry><option>-fwarn-overlapping-patterns</option></entry>
756 <entry>warn about overlapping patterns</entry>
757 <entry>dynamic</entry>
758 <entry><option>-fno-warn-overlapping-patterns</option></entry>
762 <entry><option>-fwarn-simple-patterns</option></entry>
763 <entry>warn about lambda-patterns that can fail</entry>
764 <entry>dynamic</entry>
765 <entry><option>-fno-warn-simple-patterns</option></entry>
769 <entry><option>-fwarn-type-defaults</option></entry>
770 <entry>warn when defaulting happens</entry>
771 <entry>dynamic</entry>
772 <entry><option>-fno-warn-type-defaults</option></entry>
776 <entry><option>-fwarn-unused-binds</option></entry>
777 <entry>warn about bindings that are unused</entry>
778 <entry>dynamic</entry>
779 <entry><option>-fno-warn-unused-binds</option></entry>
783 <entry><option>-fwarn-unused-imports</option></entry>
784 <entry>warn about unnecessary imports</entry>
785 <entry>dynamic</entry>
786 <entry><option>-fno-warn-unused-imports</option></entry>
790 <entry><option>-fwarn-unused-matches</option></entry>
791 <entry>warn about variables in patterns that aren't used</entry>
792 <entry>dynamic</entry>
793 <entry><option>-fno-warn-unused-matches</option></entry>
802 <title>Optimisation levels</title>
804 <para><xref linkend="options-optimise"/></para>
807 <tgroup cols="3" align="left" colsep="1" rowsep="1">
811 <entry>Description</entry>
812 <entry>Static/Dynamic</entry>
813 <entry>Reverse</entry>
818 <entry><option>-O</option></entry>
819 <entry>Enable default optimisation (level 1)</entry>
820 <entry>dynamic</entry>
821 <entry><option>-O0</option></entry>
824 <entry><option>-O</option><replaceable>n</replaceable></entry>
825 <entry>Set optimisation level <replaceable>n</replaceable></entry>
826 <entry>dynamic</entry>
827 <entry><option>-O0</option></entry>
835 <title>Individual optimisations</title>
837 <para><xref linkend="options-f"/></para>
840 <tgroup cols="3" align="left" colsep="1" rowsep="1">
844 <entry>Description</entry>
845 <entry>Static/Dynamic</entry>
846 <entry>Reverse</entry>
851 <entry><option>-fcase-merge</option></entry>
852 <entry>Enable case-merging</entry>
853 <entry>dynamic</entry>
854 <entry><option>-fno-case-merge</option></entry>
858 <entry><option>-fdicts-strict</option></entry>
859 <entry>Make dictionaries strict</entry>
860 <entry>static</entry>
861 <entry><option>-fno-dicts-strict</option></entry>
865 <entry><option>-fdo-eta-reduction</option></entry>
866 <entry>Enable eta-reduction</entry>
867 <entry>dynamic</entry>
868 <entry><option>-fno-do-eta-reduction</option></entry>
872 <entry><option>-fdo-lambda-eta-expansion</option></entry>
873 <entry>Enable lambda eta-reduction</entry>
874 <entry>dynamic</entry>
875 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
879 <entry><option>-fexcess-precision</option></entry>
880 <entry>Enable excess intermediate precision</entry>
881 <entry>dynamic</entry>
882 <entry><option>-fno-excess-precision</option></entry>
886 <entry><option>-frules-off</option></entry>
887 <entry>Switch off all rewrite rules (including rules
888 generated by automatic specialisation of overloaded functions)</entry>
889 <entry>static</entry>
890 <entry><option>-frules-off</option></entry>
894 <entry><option>-fignore-asserts</option></entry>
895 <entry>Ignore assertions in the source</entry>
896 <entry>dynamic</entry>
897 <entry><option>-fno-ignore-asserts</option></entry>
901 <entry><option>-fignore-interface-pragmas</option></entry>
902 <entry>Ignore pragmas in interface files</entry>
903 <entry>dynamic</entry>
904 <entry><option>-fno-ignore-interface-pragmas</option></entry>
908 <entry><option>-fliberate-case-threshold</option></entry>
909 <entry>Tweak the liberate-case optimisation (default: 10)</entry>
910 <entry>static</entry>
911 <entry><option>-fno-liberate-case-threshold</option></entry>
915 <entry><option>-fomit-interface-pragmas</option></entry>
916 <entry>Don't generate interface pragmas</entry>
917 <entry>dynamic</entry>
918 <entry><option>-fno-omit-interface-pragmas</option></entry>
922 <entry><option>-fmax-worker-args</option></entry>
923 <entry>If a worker has that many arguments, none will be
924 unpacked anymore (default: 10)</entry>
925 <entry>static</entry>
930 <entry><option>-fmax-simplifier-iterations</option></entry>
931 <entry>Set the max iterations for the simplifier</entry>
932 <entry>dynamic</entry>
937 <entry><option>-fno-state-hack</option></entry>
938 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
939 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
940 <entry>static</entry>
945 <entry><option>-fno-cse</option></entry>
946 <entry>Turn off common sub-expression</entry>
947 <entry>dynamic</entry>
952 <entry><option>-fno-full-laziness</option></entry>
953 <entry>Turn off full laziness (floating bindings outwards).</entry>
954 <entry>dynamic</entry>
955 <entry>-ffull-laziness</entry>
959 <entry><option>-fno-pre-inlining</option></entry>
960 <entry>Turn off pre-inlining</entry>
961 <entry>static</entry>
966 <entry><option>-fno-strictness</option></entry>
967 <entry>Turn off strictness analysis</entry>
968 <entry>dynamic</entry>
973 <entry><option>-funbox-strict-fields</option></entry>
974 <entry>Flatten strict constructor fields</entry>
975 <entry>dynamic</entry>
976 <entry><option>-fno-unbox-strict-fields</option></entry>
980 <entry><option>-funfolding-creation-threshold</option></entry>
981 <entry>Tweak unfolding settings</entry>
982 <entry>static</entry>
983 <entry><option>-fno-unfolding-creation-threshold</option></entry>
987 <entry><option>-funfolding-fun-discount</option></entry>
988 <entry>Tweak unfolding settings</entry>
989 <entry>static</entry>
990 <entry><option>-fno-unfolding-fun-discount</option></entry>
994 <entry><option>-funfolding-keeness-factor</option></entry>
995 <entry>Tweak unfolding settings</entry>
996 <entry>static</entry>
997 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1001 <entry><option>-funfolding-update-in-place</option></entry>
1002 <entry>Tweak unfolding settings</entry>
1003 <entry>static</entry>
1004 <entry><option>-fno-unfolding-update-in-place</option></entry>
1008 <entry><option>-funfolding-use-threshold</option></entry>
1009 <entry>Tweak unfolding settings</entry>
1010 <entry>static</entry>
1011 <entry><option>-fno-unfolding-use-threshold</option></entry>
1019 <title>Profiling options</title>
1021 <para><xref linkend="profiling"/></para>
1024 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1028 <entry>Description</entry>
1029 <entry>Static/Dynamic</entry>
1030 <entry>Reverse</entry>
1035 <entry><option>-auto</option></entry>
1036 <entry>Auto-add <literal>_scc_</literal>s to all
1037 exported functions</entry>
1038 <entry>static</entry>
1039 <entry><option>-no-auto</option></entry>
1042 <entry><option>-auto-all</option></entry>
1043 <entry>Auto-add <literal>_scc_</literal>s to all
1044 top-level functions</entry>
1045 <entry>static</entry>
1046 <entry><option>-no-auto-all</option></entry>
1049 <entry><option>-auto-dicts</option></entry>
1050 <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
1051 <entry>static</entry>
1052 <entry><option>-no-auto-dicts</option></entry>
1055 <entry><option>-caf-all</option></entry>
1056 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1057 <entry>static</entry>
1058 <entry><option>-no-caf-all</option></entry>
1061 <entry><option>-prof</option></entry>
1062 <entry>Turn on profiling</entry>
1063 <entry>static</entry>
1067 <entry><option>-ticky</option></entry>
1068 <entry>Turn on ticky-ticky profiling</entry>
1069 <entry>static</entry>
1078 <title>Parallelism options</title>
1080 <para><xref linkend="sec-using-parallel"/></para>
1083 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1087 <entry>Description</entry>
1088 <entry>Static/Dynamic</entry>
1089 <entry>Reverse</entry>
1094 <entry><option>-gransim</option></entry>
1095 <entry>Enable GRANSIM</entry>
1096 <entry>static</entry>
1100 <entry><option>-parallel</option></entry>
1101 <entry>Enable Parallel Haskell</entry>
1102 <entry>static</entry>
1106 <entry><option>-smp</option></entry>
1107 <entry>Enable SMP support</entry>
1108 <entry>static</entry>
1117 <title>C pre-processor options</title>
1119 <para><xref linkend="c-pre-processor"/></para>
1122 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1126 <entry>Description</entry>
1127 <entry>Static/Dynamic</entry>
1128 <entry>Reverse</entry>
1133 <entry><option>-cpp</option></entry>
1134 <entry>Run the C pre-processor on Haskell source files</entry>
1135 <entry>dynamic</entry>
1139 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1140 <entry>Define a symbol in the C pre-processor</entry>
1141 <entry>dynamic</entry>
1142 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1145 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1146 <entry>Undefine a symbol in the C pre-processor</entry>
1147 <entry>dynamic</entry>
1151 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1152 <entry>Add <replaceable>dir</replaceable> to the
1153 directory search list for <literal>#include</literal> files</entry>
1154 <entry>dynamic</entry>
1163 <title>C compiler options</title>
1165 <para><xref linkend="options-C-compiler"/></para>
1167 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1171 <entry>Description</entry>
1172 <entry>Static/Dynamic</entry>
1173 <entry>Reverse</entry>
1178 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1179 <entry>Include <replaceable>file</replaceable> when
1180 compiling the <filename>.hc</filename> file</entry>
1181 <entry>dynamic</entry>
1190 <title>Code generation options</title>
1192 <para><xref linkend="options-codegen"/></para>
1195 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1199 <entry>Description</entry>
1200 <entry>Static/Dynamic</entry>
1201 <entry>Reverse</entry>
1206 <entry><option>-fasm</option></entry>
1207 <entry>Use the native code generator</entry>
1208 <entry>dynamic</entry>
1209 <entry>-fvia-C</entry>
1212 <entry><option>-fvia-C</option></entry>
1213 <entry>Compile via C</entry>
1214 <entry>dynamic</entry>
1215 <entry>-fasm</entry>
1218 <entry><option>-fno-code</option></entry>
1219 <entry>Omit code generation</entry>
1229 <title>Linking options</title>
1231 <para><xref linkend="options-linker"/></para>
1234 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1238 <entry>Description</entry>
1239 <entry>Static/Dynamic</entry>
1240 <entry>Reverse</entry>
1245 <entry><option>-dynamic</option></entry>
1246 <entry>Use dynamic Haskell libraries (if available)</entry>
1247 <entry>static</entry>
1251 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1252 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1253 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1254 <entry>dynamic</entry>
1258 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1259 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1260 directories searched for frameworks.
1261 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1262 <entry>dynamic</entry>
1266 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1267 <entry>Link in library <replaceable>lib</replaceable></entry>
1268 <entry>dynamic</entry>
1272 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1273 <entry>Add <replaceable>dir</replaceable> to the list of
1274 directories searched for libraries</entry>
1275 <entry>dynamic</entry>
1279 <entry><option>-main-is</option></entry>
1280 <entry>Set main function</entry>
1281 <entry>dynamic</entry>
1285 <entry><option>--mk-dll</option></entry>
1286 <entry>DLL-creation mode (Windows only)</entry>
1287 <entry>dynamic</entry>
1291 <entry><option>-no-hs-main</option></entry>
1292 <entry>Don't assume this program contains <literal>main</literal></entry>
1293 <entry>dynamic</entry>
1297 <entry><option>-no-link</option></entry>
1298 <entry>Omit linking</entry>
1299 <entry>dynamic</entry>
1303 <entry><option>-package</option> <replaceable>name</replaceable></entry>
1304 <entry>Link in package <replaceable>name</replaceable></entry>
1305 <entry>dynamic</entry>
1309 <entry><option>-split-objs</option></entry>
1310 <entry>Split objects (for libraries)</entry>
1311 <entry>dynamic</entry>
1315 <entry><option>-static</option></entry>
1316 <entry>Use static Haskell libraries</entry>
1317 <entry>static</entry>
1321 <entry><option>-threaded</option></entry>
1322 <entry>Use the threaded runtime</entry>
1323 <entry>static</entry>
1327 <entry><option>-debug</option></entry>
1328 <entry>Use the debugging runtime</entry>
1329 <entry>static</entry>
1338 <title>Replacing phases</title>
1340 <para><xref linkend="replacing-phases"/></para>
1343 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1347 <entry>Description</entry>
1348 <entry>Static/Dynamic</entry>
1349 <entry>Reverse</entry>
1354 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1355 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1356 <entry>dynamic</entry>
1360 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1361 <entry>Use <replaceable>cmd</replaceable> as the C
1362 pre-processor (with <option>-cpp</option> only)</entry>
1363 <entry>dynamic</entry>
1367 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1368 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1369 <entry>dynamic</entry>
1373 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1374 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1375 <entry>dynamic</entry>
1379 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1380 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1381 <entry>dynamic</entry>
1385 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1386 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1387 <entry>dynamic</entry>
1391 <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1392 <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1393 <entry>dyanmic</entry>
1397 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1398 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1399 (with <option>-F</option> only)</entry>
1400 <entry>dynamic</entry>
1406 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1407 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1408 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1409 <indexterm><primary><option>-pgma</option></primary></indexterm>
1410 <indexterm><primary><option>-pgml</option></primary></indexterm>
1411 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1412 <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1413 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1418 <title>Forcing options to particular phases</title>
1420 <para><xref linkend="forcing-options-through"/></para>
1423 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1427 <entry>Description</entry>
1428 <entry>Static/Dynamic</entry>
1429 <entry>Reverse</entry>
1434 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1435 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1436 <entry>dynamic</entry>
1440 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1441 <entry>pass <replaceable>option</replaceable> to cpp (with
1442 <option>-cpp</option> only)</entry>
1443 <entry>dynamic</entry>
1447 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1448 <entry>pass <replaceable>option</replaceable> to the
1449 custom pre-processor</entry>
1450 <entry>dynamic</entry>
1454 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1455 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1456 <entry>dynamic</entry>
1460 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1461 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1462 <entry>dynamic</entry>
1466 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1467 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1468 <entry>dynamic</entry>
1472 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1473 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1474 <entry>dynamic</entry>
1478 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1479 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1480 <entry>dynamic</entry>
1489 <title>Platform-specific options</title>
1491 <para><xref linkend="options-platform"/></para>
1494 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1498 <entry>Description</entry>
1499 <entry>Static/Dynamic</entry>
1500 <entry>Reverse</entry>
1505 <entry><option>-mv8</option></entry>
1506 <entry>(SPARC only) enable version 8 support</entry>
1507 <entry>static</entry>
1511 <entry><option>-monly-[32]-regs</option></entry>
1512 <entry>(x86 only) give some registers back to the C compiler</entry>
1513 <entry>dynamic</entry>
1523 <title>External core file options</title>
1525 <para><xref linkend="ext-core"/></para>
1528 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1532 <entry>Description</entry>
1533 <entry>Static/Dynamic</entry>
1534 <entry>Reverse</entry>
1539 <entry><option>-fext-core</option></entry>
1540 <entry>Generate <filename>.hcr</filename> external Core files</entry>
1541 <entry>static</entry>
1551 <title>Compiler debugging options</title>
1553 <para><xref linkend="options-debugging"/></para>
1556 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1560 <entry>Description</entry>
1561 <entry>Static/Dynamic</entry>
1562 <entry>Reverse</entry>
1567 <entry><option>-dcore-lint</option></entry>
1568 <entry>Turn on internal sanity checking</entry>
1569 <entry>dynamic</entry>
1573 <entry><option>-ddump-absC</option></entry>
1574 <entry>Dump abstract C</entry>
1575 <entry>dynamic</entry>
1579 <entry><option>-ddump-asm</option></entry>
1580 <entry>Dump assembly</entry>
1581 <entry>dynamic</entry>
1585 <entry><option>-ddump-bcos</option></entry>
1586 <entry>Dump interpreter byte code</entry>
1587 <entry>dynamic</entry>
1591 <entry><option>-ddump-cpranal</option></entry>
1592 <entry>Dump output from CPR analysis</entry>
1593 <entry>dynamic</entry>
1597 <entry><option>-ddump-cse</option></entry>
1598 <entry>Dump CSE output</entry>
1599 <entry>dynamic</entry>
1603 <entry><option>-ddump-deriv</option></entry>
1604 <entry>Dump deriving output</entry>
1605 <entry>dynamic</entry>
1609 <entry><option>-ddump-ds</option></entry>
1610 <entry>Dump desugarer output</entry>
1611 <entry>dynamic</entry>
1615 <entry><option>-ddump-flatC</option></entry>
1616 <entry>Dump “flat” C</entry>
1617 <entry>dynamic</entry>
1621 <entry><option>-ddump-foreign</option></entry>
1622 <entry>Dump <literal>foreign export</literal> stubs</entry>
1623 <entry>dynamic</entry>
1627 <entry><option>-ddump-inlinings</option></entry>
1628 <entry>Dump inlining info</entry>
1629 <entry>dynamic</entry>
1633 <entry><option>-ddump-occur-anal</option></entry>
1634 <entry>Dump occurrence analysis output</entry>
1635 <entry>dynamic</entry>
1639 <entry><option>-ddump-parsed</option></entry>
1640 <entry>Dump parse tree</entry>
1641 <entry>dynamic</entry>
1645 <entry><option>-ddump-realC</option></entry>
1646 <entry>Dump “real” C</entry>
1647 <entry>dynamic</entry>
1651 <entry><option>-ddump-rn</option></entry>
1652 <entry>Dump renamer output</entry>
1653 <entry>dynamic</entry>
1657 <entry><option>-ddump-rules</option></entry>
1658 <entry>Dump rules</entry>
1659 <entry>dynamic</entry>
1663 <entry><option>-ddump-sat</option></entry>
1664 <entry>Dump saturated output</entry>
1665 <entry>dynamic</entry>
1669 <entry><option>-ddump-simpl</option></entry>
1670 <entry>Dump final simplifier output</entry>
1671 <entry>dynamic</entry>
1675 <entry><option>-ddump-simpl-iterations</option></entry>
1676 <entry>Dump output from each simplifier iteration</entry>
1677 <entry>dynamic</entry>
1681 <entry><option>-ddump-spec</option></entry>
1682 <entry>Dump specialiser output</entry>
1683 <entry>dynamic</entry>
1687 <entry><option>-ddump-stg</option></entry>
1688 <entry>Dump final STG</entry>
1689 <entry>dynamic</entry>
1693 <entry><option>-ddump-stranal</option></entry>
1694 <entry>Dump strictness analyser output</entry>
1695 <entry>dynamic</entry>
1699 <entry><option>-ddump-tc</option></entry>
1700 <entry>Dump typechecker output</entry>
1701 <entry>dynamic</entry>
1705 <entry><option>-ddump-types</option></entry>
1706 <entry>Dump type signatures</entry>
1707 <entry>dynamic</entry>
1711 <entry><option>-ddump-usagesp</option></entry>
1712 <entry>Dump UsageSP analysis output</entry>
1713 <entry>dynamic</entry>
1717 <entry><option>-ddump-worker-wrapper</option></entry>
1718 <entry>Dump worker-wrapper output</entry>
1719 <entry>dynamic</entry>
1723 <entry><option>-ddump-rn-trace</option></entry>
1724 <entry>Trace renamer</entry>
1725 <entry>dynamic</entry>
1729 <entry><option>-ddump-rn-stats</option></entry>
1730 <entry>Renamer stats</entry>
1731 <entry>dynamic</entry>
1735 <entry><option>-ddump-stix</option></entry>
1736 <entry>Native code generator intermediate form</entry>
1737 <entry>dynamic</entry>
1741 <entry><option>-ddump-simpl-stats</option></entry>
1742 <entry>Dump simplifier stats</entry>
1743 <entry>dynamic</entry>
1747 <entry><option>-dppr-debug</option></entry>
1748 <entry>Turn on debug printing (more verbose)</entry>
1749 <entry>static</entry>
1753 <entry><option>-dppr-noprags</option></entry>
1754 <entry>Don't output pragma info in dumps</entry>
1755 <entry>static</entry>
1759 <entry><option>-dppr-user-length</option></entry>
1760 <entry>Set the depth for printing expressions in error msgs</entry>
1761 <entry>static</entry>
1765 <entry><option>-dsource-stats</option></entry>
1766 <entry>Dump haskell source stats</entry>
1767 <entry>dynamic</entry>
1771 <entry><option>-dstg-lint</option></entry>
1772 <entry>STG pass sanity checking</entry>
1773 <entry>dynamic</entry>
1777 <entry><option>-dstg-stats</option></entry>
1778 <entry>Dump STG stats</entry>
1779 <entry>dynamic</entry>
1783 <entry><option>-dusagesp-lint</option></entry>
1784 <entry>UsageSP sanity checker</entry>
1785 <entry>dynamic</entry>
1789 <entry><option>-dverbose-core2core</option></entry>
1790 <entry>Show output from each core-to-core pass</entry>
1791 <entry>dynamic</entry>
1795 <entry><option>-dverbose-stg2stg</option></entry>
1796 <entry>Show output from each STG-to-STG pass</entry>
1797 <entry>dynamic</entry>
1801 <entry><option>-unreg</option></entry>
1802 <entry>Enable unregisterised compilation</entry>
1803 <entry>static</entry>
1812 <title>Misc compiler options</title>
1815 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1819 <entry>Description</entry>
1820 <entry>Static/Dynamic</entry>
1821 <entry>Reverse</entry>
1826 <entry><option>-femit-extern-decls</option></entry>
1828 <entry>static</entry>
1832 <entry><option>-fno-hi-version-check</option></entry>
1833 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1834 <entry>static</entry>
1838 <entry><option>-dno-black-holing</option></entry>
1839 <entry>Turn off black holing (probably doesn't work)</entry>
1840 <entry>static</entry>
1844 <entry><option>-fno-method-sharing</option></entry>
1845 <entry>Don't share specialisations of overloaded functions</entry>
1846 <entry>static</entry>
1850 <entry><option>-fhistory-size</option></entry>
1851 <entry>Set simplification history size</entry>
1852 <entry>static</entry>
1856 <entry><option>-funregisterised</option></entry>
1857 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1858 <entry>static</entry>
1862 <entry><option>-fno-asm-mangling</option></entry>
1863 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1864 <entry>dynamic</entry>
1878 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
1879 , ( "Rghc-timing" , NoArg (enableTimingStats) )
1885 ;;; Local Variables: ***
1887 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***