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 (<xref linkend="options-help"/>)</title>
14 <tgroup cols="3" align="left" colsep="1" rowsep="1">
18 <entry>Description</entry>
19 <entry>Static/Dynamic</entry>
20 <entry>Reverse</entry>
25 <entry><option>-?</option></entry>
31 <entry><option>-help</option></entry>
37 <entry><option>-v</option></entry>
38 <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
39 <entry>dynamic</entry>
43 <entry><option>-v</option><replaceable>n</replaceable></entry>
44 <entry>set verbosity level</entry>
45 <entry>dynamic</entry>
49 <entry><option>-V</option></entry>
50 <entry>display GHC version</entry>
55 <entry><option>––version</option></entry>
56 <entry>display GHC version</entry>
61 <entry><option>––numeric-version</option></entry>
62 <entry>display GHC version (numeric only)</entry>
67 <entry><option>––print-libdir</option></entry>
68 <entry>display GHC library directory</entry>
73 <entry><option>-ferror-spans</option></entry>
74 <entry>output full span in error messages</entry>
84 <title>Which phases to run (<xref linkend="options-order"/>)</title>
87 <tgroup cols="3" align="left" colsep="1" rowsep="1">
91 <entry>Description</entry>
92 <entry>Static/Dynamic</entry>
93 <entry>Reverse</entry>
98 <entry><option>-E</option></entry>
99 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
100 <entry>static</entry>
104 <entry><option>-C</option></entry>
105 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
106 <entry>static</entry>
110 <entry><option>-S</option></entry>
111 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
112 <entry>static</entry>
116 <entry><option>-c</option></entry>
117 <entry>Stop after compiling to object code (<literal>.o</literal> file)</entry>
118 <entry>static</entry>
127 <title>Alternative modes of operation (<xref linkend="modes"/>)</title>
130 <tgroup cols="3" align="left" colsep="1" rowsep="1">
134 <entry>Description</entry>
135 <entry>Static/Dynamic</entry>
136 <entry>Reverse</entry>
141 <entry><option>--interactive</option></entry>
142 <entry>Interactive mode - normally used by just running <command>ghci</command></entry>
143 <entry>static</entry>
147 <entry><option>--make</option></entry>
148 <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>.</entry>
149 <entry>static</entry>
153 <entry><option>-e <replaceable>expr</replaceable></option></entry>
154 <entry>Evaluate <replaceable>expr</replaceable></entry>
155 <entry>static</entry>
159 <entry><option>-M</option></entry>
160 <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>.</entry>
161 <entry>static</entry>
165 <entry><option>--mk-dll</option></entry>
166 <entry>DLL-creation mode (Windows only)</entry>
167 <entry>static</entry>
176 <title>Redirecting output (<xref linkend="options-output"/>)</title>
179 <tgroup cols="3" align="left" colsep="1" rowsep="1">
183 <entry>Description</entry>
184 <entry>Static/Dynamic</entry>
185 <entry>Reverse</entry>
190 <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
191 <entry>set the suffix to use for intermediate C files</entry>
192 <entry>static</entry>
196 <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
197 <entry>set directory for interface files</entry>
198 <entry>static</entry>
202 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
203 <entry>set the suffix to use for interface files</entry>
204 <entry>static</entry>
208 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
209 <entry>set output filename</entry>
210 <entry>static</entry>
214 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
215 <entry>set output directory</entry>
216 <entry>static</entry>
220 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
221 <entry>set the filename in which to put the interface</entry>
222 <entry>static</entry>
226 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
227 <entry>set the output file suffix</entry>
228 <entry>static</entry>
237 <title>Keeping intermediate files (<xref linkend="keeping-intermediates"/>)</title>
240 <tgroup cols="3" align="left" colsep="1" rowsep="1">
244 <entry>Description</entry>
245 <entry>Static/Dynamic</entry>
246 <entry>Reverse</entry>
251 <entry><option>-keep-hc-file</option></entry>
252 <entry>retain intermediate <literal>.hc</literal> files</entry>
253 <entry>static</entry>
257 <entry><option>-keep-s-file</option></entry>
258 <entry>retain intermediate <literal>.s</literal> files</entry>
259 <entry>static</entry>
263 <entry><option>-keep-raw-s-file</option></entry>
264 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
265 <entry>static</entry>
269 <entry><option>-keep-tmp-files</option></entry>
270 <entry>retain all intermediate temporary files</entry>
271 <entry>static</entry>
280 <title>Temporary files (<xref linkend="temp-files"/>)</title>
283 <tgroup cols="3" align="left" colsep="1" rowsep="1">
287 <entry>Description</entry>
288 <entry>Static/Dynamic</entry>
289 <entry>Reverse</entry>
294 <entry><option>-tmpdir</option></entry>
295 <entry>set the directory for temporary files</entry>
296 <entry>static</entry>
305 <title>Finding imports (<xref linkend="search-path"/>)</title>
308 <tgroup cols="3" align="left" colsep="1" rowsep="1">
313 <entry>Description</entry>
314 <entry>Static/Dynamic</entry>
315 <entry>Reverse</entry>
320 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
321 <entry>add <replaceable>dir</replaceable>,
322 <replaceable>dir2</replaceable>, etc. to import path</entry>
323 <entry>static</entry>
327 <entry><option>-i</option></entry>
328 <entry>Empty the import directory list</entry>
329 <entry>static</entry>
338 <title>Interface file options (<xref linkend="hi-options"/>)</title>
341 <tgroup cols="3" align="left" colsep="1" rowsep="1">
346 <entry>Description</entry>
347 <entry>Static/Dynamic</entry>
348 <entry>Reverse</entry>
353 <entry><option>-ddump-hi</option></entry>
354 <entry>Dump the new interface to stdout</entry>
355 <entry>dynamic</entry>
359 <entry><option>-ddump-hi-diffs</option></entry>
360 <entry>Show the differences vs. the old interface</entry>
361 <entry>dynamic</entry>
365 <entry><option>-ddump-minimal-imports</option></entry>
366 <entry>Dump a minimal set of imports</entry>
367 <entry>dynamic</entry>
371 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
372 <entry>Read the interface in
373 <replaceable>file</replaceable> and dump it as text to
374 <literal>stdout</literal>.</entry>
375 <entry>static</entry>
384 <title>Recompilation checking (<xref linkend="recomp"/>)</title>
387 <tgroup cols="3" align="left" colsep="1" rowsep="1">
392 <entry>Description</entry>
393 <entry>Static/Dynamic</entry>
394 <entry>Reverse</entry>
399 <entry><option>-no-recomp</option></entry>
400 <entry>Turn off recompilation checking</entry>
401 <entry>static</entry>
402 <entry><option>-recomp</option></entry>
410 <title>Interactive-mode options (<xref linkend="ghci-dot-files"/>)</title>
413 <tgroup cols="3" align="left" colsep="1" rowsep="1">
417 <entry>Description</entry>
418 <entry>Static/Dynamic</entry>
419 <entry>Reverse</entry>
424 <entry><option>-ignore-dot-ghci</option></entry>
425 <entry>Disable reading of <filename>.ghci</filename> files</entry>
426 <entry>static</entry>
430 <entry><option>-read-dot-ghci</option></entry>
431 <entry>Enable reading of <filename>.ghci</filename> files</entry>
432 <entry>static</entry>
441 <title>Packages (<xref linkend="packages"/>)</title>
443 <tgroup cols="3" align="left" colsep="1" rowsep="1">
447 <entry>Description</entry>
448 <entry>Static/Dynamic</entry>
449 <entry>Reverse</entry>
454 <entry><option>-package</option> <replaceable>name</replaceable></entry>
455 <entry>Use package <replaceable>name</replaceable></entry>
456 <entry>static</entry>
460 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
461 <entry>Load more packages from <replaceable>file</replaceable></entry>
462 <entry>static</entry>
466 <entry><option>-package-name</option> <replaceable>name</replaceable></entry>
467 <entry>Compile code for package <replaceable>name</replaceable></entry>
468 <entry>static</entry>
477 <title>Language options (<xref linkend="options-language"/>)</title>
480 <tgroup cols="3" align="left" colsep="1" rowsep="1">
484 <entry>Description</entry>
485 <entry>Static/Dynamic</entry>
486 <entry>Reverse</entry>
491 <entry><option>-fallow-overlapping-instances</option></entry>
492 <entry>Enable overlapping instances</entry>
493 <entry>dynamic</entry>
494 <entry><option>-fno-allow-overlapping-instances</option></entry>
497 <entry><option>-fallow-undecidable-instances</option></entry>
498 <entry>Enable undecidable instances</entry>
499 <entry>dynamic</entry>
500 <entry><option>-fno-allow-undecidable-instances</option></entry>
503 <entry><option>-fallow-incoherent-instances</option></entry>
504 <entry>Enable incoherent instances</entry>
505 <entry>dynamic</entry>
506 <entry><option>-fno-allow-incoherent-instances</option></entry>
509 <entry><option>-farrows</option></entry>
510 <entry>Enable arrow notation extension</entry>
511 <entry>dynamic</entry>
512 <entry><option>-fno-arrows</option></entry>
515 <entry><option>-fcontext-stack</option><replaceable>n</replaceable></entry>
516 <entry>set the limit for context reduction</entry>
517 <entry>static</entry>
518 <entry><option>-</option></entry>
521 <entry><option>-ffi</option> or <option>-fffi</option></entry>
522 <entry>Enable foreign function interface (implied by
523 <option>-fglasgow-exts</option>)</entry>
524 <entry>dynamic</entry>
525 <entry><option>-fno-ffi</option></entry>
528 <entry><option>-fgenerics</option></entry>
529 <entry>Enable generics</entry>
530 <entry>dynamic</entry>
531 <entry><option>-fno-fgenerics</option></entry>
534 <entry><option>-fglasgow-exts</option></entry>
535 <entry>Enable most language extensions</entry>
536 <entry>dynamic</entry>
537 <entry><option>-fno-glasgow-exts</option></entry>
540 <entry><option>-fignore-asserts</option></entry>
541 <entry>Ignore assertions</entry>
542 <entry>dynamic</entry>
543 <entry><option>-fno-ignore-asserts</option></entry>
546 <entry><option>-fimplicit-params</option></entry>
547 <entry>Enable Implicit Parameters.
548 Implied by <option>-fglasgow-exts</option>.</entry>
549 <entry>dynamic</entry>
550 <entry><option>-fno-implicit-params</option></entry>
553 <entry><option>-firrefutable-tuples</option></entry>
554 <entry>Make tuple pattern matching irrefutable</entry>
555 <entry>dynamic</entry>
556 <entry><option>-fno-irrefutable-tuples</option></entry>
559 <entry><option>-fno-implicit-prelude</option></entry>
560 <entry>Don't implicitly <literal>import Prelude</literal></entry>
561 <entry>dynamic</entry>
562 <entry><option>-fimplicit-prelude</option></entry>
565 <entry><option>-fno-monomorphism-restriction</option></entry>
566 <entry>Disable the monomorphism restriction</entry>
567 <entry>dynamic</entry>
568 <entry><option>-fmonomorphism-restriction</option></entry>
571 <entry><option>-fscoped-type-variables</option></entry>
572 <entry>Enable lexically-scoped type variables.
573 Implied by <option>-fglasgow-exts</option>.</entry>
574 <entry>dynamic</entry>
575 <entry><option>-fno-scoped-type-variables</option></entry>
578 <entry><option>-fth</option></entry>
579 <entry>Enable Template Haskell.
580 Implied by <option>-fglasgow-exts</option>.</entry>
581 <entry>dynamic</entry>
582 <entry><option>-fno-th</option></entry>
590 <title>Warnings (<xref linkend="options-sanity"/>)</title>
593 <tgroup cols="3" align="left" colsep="1" rowsep="1">
597 <entry>Description</entry>
598 <entry>Static/Dynamic</entry>
599 <entry>Reverse</entry>
604 <entry><option>-W</option></entry>
605 <entry>enable normal warnings</entry>
606 <entry>dynamic</entry>
607 <entry><option>-w</option></entry>
610 <entry><option>-w</option></entry>
611 <entry>disable all warnings</entry>
612 <entry>dynamic</entry>
616 <entry><option>-Wall</option></entry>
617 <entry>enable all warnings</entry>
618 <entry>dynamic</entry>
619 <entry><option>-w</option></entry>
622 <entry><option>-Werror</option></entry>
623 <entry>make warnings fatal</entry>
624 <entry>dynamic</entry>
629 <entry><option>-fwarn-deprecations</option></entry>
630 <entry>warn about uses of functions & types that are deprecated</entry>
631 <entry>dynamic</entry>
632 <entry><option>-fno-warn-deprecations</option></entry>
636 <entry><option>-fwarn-duplicate-exports</option></entry>
637 <entry>warn when an entity is exported multiple times</entry>
638 <entry>dynamic</entry>
639 <entry><option>-fno-warn-duplicate-exports</option></entry>
643 <entry><option>-fwarn-hi-shadowing</option></entry>
644 <entry>warn when a <literal>.hi</literal> file in the
645 current directory shadows a library</entry>
646 <entry>dynamic</entry>
647 <entry><option>-fno-warn-hi-shadowing</option></entry>
651 <entry><option>-fwarn-incomplete-patterns</option></entry>
652 <entry>warn when a pattern match could fail</entry>
653 <entry>dynamic</entry>
654 <entry><option>-fno-warn-incomplete-patterns</option></entry>
658 <entry><option>-fwarn-incomplete-record-updates</option></entry>
659 <entry>warn when a record update could fail</entry>
660 <entry>dynamic</entry>
661 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
665 <entry><option>-fwarn-misc</option></entry>
666 <entry>enable miscellaneous warnings</entry>
667 <entry>dynamic</entry>
668 <entry><option>-fno-warn-misc</option></entry>
672 <entry><option>-fwarn-missing-fields</option></entry>
673 <entry>warn when fields of a record are uninitialised</entry>
674 <entry>dynamic</entry>
675 <entry><option>-fno-warn-missing-fields</option></entry>
679 <entry><option>-fwarn-missing-methods</option></entry>
680 <entry>warn when class methods are undefined</entry>
681 <entry>dynamic</entry>
682 <entry><option>-fno-warn-missing-methods</option></entry>
686 <entry><option>-fwarn-missing-signatures</option></entry>
687 <entry>warn about top-level functions without signatures</entry>
688 <entry>dynamic</entry>
689 <entry><option>-fno-warn-missing-signatures</option></entry>
693 <entry><option>-fwarn-name-shadowing</option></entry>
694 <entry>warn when names are shadowed</entry>
695 <entry>dynamic</entry>
696 <entry><option>-fno-warn-name-shadowing</option></entry>
700 <entry><option>-fwarn-oprhans</option></entry>
701 <entry>warn when the module contains "orphan" instance declarations
702 or rewrite rules</entry>
703 <entry>dynamic</entry>
704 <entry><option>-fno-warn-orphans</option></entry>
708 <entry><option>-fwarn-overlapping-patterns</option></entry>
709 <entry>warn about overlapping patterns</entry>
710 <entry>dynamic</entry>
711 <entry><option>-fno-warn-overlapping-patterns</option></entry>
715 <entry><option>-fwarn-simple-patterns</option></entry>
716 <entry>warn about lambda-patterns that can fail</entry>
717 <entry>dynamic</entry>
718 <entry><option>-fno-warn-simple-patterns</option></entry>
722 <entry><option>-fwarn-type-defaults</option></entry>
723 <entry>warn when defaulting happens</entry>
724 <entry>dynamic</entry>
725 <entry><option>-fno-warn-type-defaults</option></entry>
729 <entry><option>-fwarn-unused-binds</option></entry>
730 <entry>warn about bindings that are unused</entry>
731 <entry>dynamic</entry>
732 <entry><option>-fno-warn-unused-binds</option></entry>
736 <entry><option>-fwarn-unused-imports</option></entry>
737 <entry>warn about unnecessary imports</entry>
738 <entry>dynamic</entry>
739 <entry><option>-fno-warn-unused-imports</option></entry>
743 <entry><option>-fwarn-unused-matches</option></entry>
744 <entry>warn about variables in patterns that aren't used</entry>
745 <entry>dynamic</entry>
746 <entry><option>-fno-warn-unused-matches</option></entry>
755 <title>Optimisation levels (<xref linkend="options-optimise"/>)</title>
758 <tgroup cols="3" align="left" colsep="1" rowsep="1">
762 <entry>Description</entry>
763 <entry>Static/Dynamic</entry>
764 <entry>Reverse</entry>
769 <entry><option>-O</option></entry>
770 <entry>Enable default optimisation (level 1)</entry>
771 <entry>dynamic</entry>
772 <entry><option>-O0</option></entry>
775 <entry><option>-O</option><replaceable>n</replaceable></entry>
776 <entry>Set optimisation level <replaceable>n</replaceable></entry>
777 <entry>dynamic</entry>
778 <entry><option>-O0</option></entry>
786 <title>Individual optimisations (<xref linkend="options-f"/>)</title>
789 <tgroup cols="3" align="left" colsep="1" rowsep="1">
793 <entry>Description</entry>
794 <entry>Static/Dynamic</entry>
795 <entry>Reverse</entry>
800 <entry><option>-fcase-merge</option></entry>
801 <entry>Enable case-merging</entry>
802 <entry>dynamic</entry>
803 <entry><option>-fno-case-merge</option></entry>
807 <entry><option>-fdicts-strict</option></entry>
808 <entry>Make dictionaries strict</entry>
809 <entry>static</entry>
810 <entry><option>-fno-dicts-strict</option></entry>
814 <entry><option>-fdo-eta-reduction</option></entry>
815 <entry>Enable eta-reduction</entry>
816 <entry>dynamic</entry>
817 <entry><option>-fno-do-eta-reduction</option></entry>
821 <entry><option>-fdo-lambda-eta-expansion</option></entry>
822 <entry>Enable lambda eta-reduction</entry>
823 <entry>dynamic</entry>
824 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
828 <entry><option>-fexcess-precision</option></entry>
829 <entry>Enable excess intermediate precision</entry>
830 <entry>static</entry>
831 <entry><option>-fno-excess-precision</option></entry>
835 <entry><option>-frules-off</option></entry>
836 <entry>Switch off all rewrite rules (including rules
837 generated by automatic specialisation of overloaded functions)</entry>
838 <entry>static</entry>
839 <entry><option>-frules-off</option></entry>
843 <entry><option>-fignore-asserts</option></entry>
844 <entry>Ignore assertions in the source</entry>
845 <entry>static</entry>
846 <entry><option>-fno-ignore-asserts</option></entry>
850 <entry><option>-fignore-interface-pragmas</option></entry>
851 <entry>Ignore pragmas in interface files</entry>
852 <entry>static</entry>
853 <entry><option>-fno-ignore-interface-pragmas</option></entry>
857 <entry><option>-fliberate-case-threshold</option></entry>
858 <entry>Tweak the liberate-case optimisation (default: 10)</entry>
859 <entry>static</entry>
860 <entry><option>-fno-liberate-case-threshold</option></entry>
864 <entry><option>-fomit-interface-pragmas</option></entry>
865 <entry>Don't generate interface pragmas</entry>
866 <entry>dynamic</entry>
867 <entry><option>-fno-omit-interface-pragmas</option></entry>
871 <entry><option>-fmax-worker-args</option></entry>
872 <entry>If a worker has that many arguments, none will be
873 unpacked anymore (default: 10)</entry>
874 <entry>static</entry>
879 <entry><option>-fmax-simplifier-iterations</option></entry>
880 <entry>Set the max iterations for the simplifier</entry>
881 <entry>dynamic</entry>
886 <entry><option>-fno-state-hack</option></entry>
887 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
888 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
889 <entry>static</entry>
894 <entry><option>-fno-cpr</option></entry>
895 <entry>Turn off CPR analysis</entry>
896 <entry>static</entry>
901 <entry><option>-fno-cse</option></entry>
902 <entry>Turn off common sub-expression</entry>
903 <entry>dynamic</entry>
908 <entry><option>-fno-full-laziness</option></entry>
909 <entry>Turn off full laziness (floating bindings outwards). It is on by default.</entry>
910 <entry>dynamic</entry>
911 <entry>-ffull-laziness</entry>
915 <entry><option>-fno-pre-inlining</option></entry>
916 <entry>Turn off pre-inlining</entry>
917 <entry>static</entry>
922 <entry><option>-fno-strictness</option></entry>
923 <entry>Turn off strictness analysis</entry>
924 <entry>dynamic</entry>
929 <entry><option>-fnumbers-strict</option></entry>
930 <entry>Make numbers strict</entry>
931 <entry>dynamic</entry>
932 <entry><option>-fno-numbers-strict</option></entry>
936 <entry><option>-funbox-strict-fields</option></entry>
937 <entry>Flatten strict constructor fields</entry>
938 <entry>dynamic</entry>
939 <entry><option>-fno-unbox-strict-fields</option></entry>
943 <entry><option>-funfolding-creation-threshold</option></entry>
944 <entry>Tweak unfolding settings</entry>
945 <entry>static</entry>
946 <entry><option>-fno-unfolding-creation-threshold</option></entry>
950 <entry><option>-funfolding-fun-discount</option></entry>
951 <entry>Tweak unfolding settings</entry>
952 <entry>static</entry>
953 <entry><option>-fno-unfolding-fun-discount</option></entry>
957 <entry><option>-funfolding-keeness-factor</option></entry>
958 <entry>Tweak unfolding settings</entry>
959 <entry>static</entry>
960 <entry><option>-fno-unfolding-keeness-factor</option></entry>
964 <entry><option>-funfolding-update-in-place</option></entry>
965 <entry>Tweak unfolding settings</entry>
966 <entry>static</entry>
967 <entry><option>-fno-unfolding-update-in-place</option></entry>
971 <entry><option>-funfolding-use-threshold</option></entry>
972 <entry>Tweak unfolding settings</entry>
973 <entry>static</entry>
974 <entry><option>-fno-unfolding-use-threshold</option></entry>
982 <title>Profiling options (<xref linkend="profiling"/>)</title>
985 <tgroup cols="3" align="left" colsep="1" rowsep="1">
989 <entry>Description</entry>
990 <entry>Static/Dynamic</entry>
991 <entry>Reverse</entry>
996 <entry><option>-auto</option></entry>
997 <entry>Auto-add <literal>_scc_</literal>s to all
998 exported functions</entry>
999 <entry>static</entry>
1000 <entry><option>-no-auto</option></entry>
1003 <entry><option>-auto-all</option></entry>
1004 <entry>Auto-add <literal>_scc_</literal>s to all
1005 top-level functions</entry>
1006 <entry>static</entry>
1007 <entry><option>-no-auto-all</option></entry>
1010 <entry><option>-auto-dicts</option></entry>
1011 <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
1012 <entry>static</entry>
1013 <entry><option>-no-auto-dicts</option></entry>
1016 <entry><option>-caf-all</option></entry>
1017 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1018 <entry>static</entry>
1019 <entry><option>-no-caf-all</option></entry>
1022 <entry><option>-prof</option></entry>
1023 <entry>Turn on profiling</entry>
1024 <entry>static</entry>
1028 <entry><option>-ticky</option></entry>
1029 <entry>Turn on ticky-ticky profiling</entry>
1030 <entry>static</entry>
1039 <title>Parallelism options (<xref linkend="sec-using-parallel"/>)</title>
1042 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1046 <entry>Description</entry>
1047 <entry>Static/Dynamic</entry>
1048 <entry>Reverse</entry>
1053 <entry><option>-gransim</option></entry>
1054 <entry>Enable GRANSIM</entry>
1055 <entry>static</entry>
1059 <entry><option>-parallel</option></entry>
1060 <entry>Enable Parallel Haskell</entry>
1061 <entry>static</entry>
1065 <entry><option>-smp</option></entry>
1066 <entry>Enable SMP support</entry>
1067 <entry>static</entry>
1076 <title>C pre-processor options (<xref linkend="c-pre-processor"/>)</title>
1079 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1083 <entry>Description</entry>
1084 <entry>Static/Dynamic</entry>
1085 <entry>Reverse</entry>
1090 <entry><option>-cpp</option></entry>
1091 <entry>Run the C pre-processor on Haskell source files</entry>
1092 <entry>dynamic</entry>
1096 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1097 <entry>Define a symbol in the C pre-processor</entry>
1098 <entry>dynamic</entry>
1099 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1102 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1103 <entry>Undefine a symbol in the C pre-processor</entry>
1104 <entry>dynamic</entry>
1108 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1109 <entry>Add <replaceable>dir</replaceable> to the
1110 directory search list for <literal>#include</literal> files</entry>
1111 <entry>static</entry>
1120 <title>C compiler options (<xref linkend="options-C-compiler"/>)</title>
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>-#include</option> <replaceable>file</replaceable></entry>
1134 <entry>Include <replaceable>file</replaceable> when
1135 compiling the <filename>.hc</filename> file</entry>
1136 <entry>dynamic</entry>
1145 <title>Code generation options (<xref linkend="options-codegen"/>)</title>
1148 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1152 <entry>Description</entry>
1153 <entry>Static/Dynamic</entry>
1154 <entry>Reverse</entry>
1159 <entry><option>-fasm</option></entry>
1160 <entry>Use the native code generator</entry>
1161 <entry>dynamic</entry>
1162 <entry>-fvia-C</entry>
1165 <entry><option>-fvia-C</option></entry>
1166 <entry>Compile via C</entry>
1167 <entry>dynamic</entry>
1168 <entry>-fasm</entry>
1171 <entry><option>-fno-code</option></entry>
1172 <entry>Omit code generation</entry>
1173 <entry>static</entry>
1182 <title>Linking options (<xref linkend="options-linker"/>)</title>
1185 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1189 <entry>Description</entry>
1190 <entry>Static/Dynamic</entry>
1191 <entry>Reverse</entry>
1196 <entry><option>-dynamic</option></entry>
1197 <entry>Use dynamic Haskell libraries (if available)</entry>
1198 <entry>static</entry>
1202 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1203 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1204 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1205 <entry>static</entry>
1209 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1210 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1211 directories searched for frameworks.
1212 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1213 <entry>static</entry>
1217 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1218 <entry>Link in library <replaceable>lib</replaceable></entry>
1219 <entry>static</entry>
1223 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1224 <entry>Add <replaceable>dir</replaceable> to the list of
1225 directories searched for libraries</entry>
1226 <entry>static</entry>
1230 <entry><option>-main-is</option></entry>
1231 <entry>Set main function</entry>
1232 <entry>static</entry>
1236 <entry><option>-no-hs-main</option></entry>
1237 <entry>Don't assume this program contains <literal>main</literal></entry>
1238 <entry>static</entry>
1242 <entry><option>-no-link</option></entry>
1243 <entry>Omit linking</entry>
1244 <entry>static</entry>
1248 <entry><option>-package</option> <replaceable>name</replaceable></entry>
1249 <entry>Link in package <replaceable>name</replaceable></entry>
1250 <entry>static</entry>
1254 <entry><option>-split-objs</option></entry>
1255 <entry>Split objects (for libraries)</entry>
1256 <entry>static</entry>
1260 <entry><option>-static</option></entry>
1261 <entry>Use static Haskell libraries</entry>
1262 <entry>static</entry>
1266 <entry><option>-threaded</option></entry>
1267 <entry>Use the threaded runtime</entry>
1268 <entry>static</entry>
1272 <entry><option>-debug</option></entry>
1273 <entry>Use the debugging runtime</entry>
1274 <entry>static</entry>
1283 <title>Replacing phases (<xref linkend="replacing-phases"/>)</title>
1286 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1290 <entry>Description</entry>
1291 <entry>Static/Dynamic</entry>
1292 <entry>Reverse</entry>
1297 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1298 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1299 <entry>static</entry>
1303 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1304 <entry>Use <replaceable>cmd</replaceable> as the C
1305 pre-processor (with <option>-cpp</option> only)</entry>
1306 <entry>static</entry> <entry>-</entry>
1309 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1310 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1311 <entry>static</entry>
1315 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1316 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1317 <entry>static</entry>
1321 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1322 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1323 <entry>static</entry>
1327 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1328 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1329 <entry>static</entry>
1333 <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1334 <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1335 <entry>static</entry>
1339 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1340 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1341 (with <option>-F</option> only)</entry>
1342 <entry>static</entry>
1348 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1349 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1350 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1351 <indexterm><primary><option>-pgma</option></primary></indexterm>
1352 <indexterm><primary><option>-pgml</option></primary></indexterm>
1353 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1354 <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1355 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1360 <title>Forcing options to particular phases (<xref linkend="forcing-options-through"/>)</title>
1363 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1367 <entry>Description</entry>
1368 <entry>Static/Dynamic</entry>
1369 <entry>Reverse</entry>
1374 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1375 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1376 <entry>dynamic</entry>
1380 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1381 <entry>pass <replaceable>option</replaceable> to cpp (with
1382 <option>-cpp</option> only)</entry>
1383 <entry>dynamic</entry>
1387 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1388 <entry>pass <replaceable>option</replaceable> to the
1389 custom pre-processor</entry>
1390 <entry>dynamic</entry>
1394 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1395 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1396 <entry>dynamic</entry>
1400 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1401 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1402 <entry>dynamic</entry>
1406 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1407 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1408 <entry>static</entry>
1412 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1413 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1414 <entry>static</entry>
1418 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1419 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1420 <entry>static</entry>
1429 <title>Platform-specific options (<xref linkend="options-platform"/>)</title>
1432 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1436 <entry>Description</entry>
1437 <entry>Static/Dynamic</entry>
1438 <entry>Reverse</entry>
1443 <entry><option>-mv8</option></entry>
1444 <entry>(SPARC only) enable version 8 support</entry>
1445 <entry>static</entry>
1449 <entry><option>-monly-[32]-regs</option></entry>
1450 <entry>(x86 only) give some registers back to the C compiler</entry>
1451 <entry>dynamic</entry>
1461 <title>External core file options (<xref linkend="ext-core"/>)</title>
1464 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1468 <entry>Description</entry>
1469 <entry>Static/Dynamic</entry>
1470 <entry>Reverse</entry>
1475 <entry><option>-fext-core</option></entry>
1476 <entry>Generate <filename>.hcr</filename> external Core files</entry>
1477 <entry>static</entry>
1487 <title>Compiler debugging options (<xref linkend="options-debugging"/>)</title>
1490 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1494 <entry>Description</entry>
1495 <entry>Static/Dynamic</entry>
1496 <entry>Reverse</entry>
1501 <entry><option>-dcore-lint</option></entry>
1502 <entry>Turn on internal sanity checking</entry>
1503 <entry>dynamic</entry>
1507 <entry><option>-ddump-absC</option></entry>
1508 <entry>Dump abstract C</entry>
1509 <entry>dynamic</entry>
1513 <entry><option>-ddump-asm</option></entry>
1514 <entry>Dump assembly</entry>
1515 <entry>dynamic</entry>
1519 <entry><option>-ddump-bcos</option></entry>
1520 <entry>Dump interpreter byte code</entry>
1521 <entry>dynamic</entry>
1525 <entry><option>-ddump-cpranal</option></entry>
1526 <entry>Dump output from CPR analysis</entry>
1527 <entry>dynamic</entry>
1531 <entry><option>-ddump-cse</option></entry>
1532 <entry>Dump CSE output</entry>
1533 <entry>dynamic</entry>
1537 <entry><option>-ddump-deriv</option></entry>
1538 <entry>Dump deriving output</entry>
1539 <entry>dynamic</entry>
1543 <entry><option>-ddump-ds</option></entry>
1544 <entry>Dump desugarer output</entry>
1545 <entry>dynamic</entry>
1549 <entry><option>-ddump-flatC</option></entry>
1550 <entry>Dump “flat” C</entry>
1551 <entry>dynamic</entry>
1555 <entry><option>-ddump-foreign</option></entry>
1556 <entry>Dump <literal>foreign export</literal> stubs</entry>
1557 <entry>dynamic</entry>
1561 <entry><option>-ddump-inlinings</option></entry>
1562 <entry>Dump inlining info</entry>
1563 <entry>dynamic</entry>
1567 <entry><option>-ddump-occur-anal</option></entry>
1568 <entry>Dump occurrence analysis output</entry>
1569 <entry>dynamic</entry>
1573 <entry><option>-ddump-parsed</option></entry>
1574 <entry>Dump parse tree</entry>
1575 <entry>dynamic</entry>
1579 <entry><option>-ddump-realC</option></entry>
1580 <entry>Dump “real” C</entry>
1581 <entry>dynamic</entry>
1585 <entry><option>-ddump-rn</option></entry>
1586 <entry>Dump renamer output</entry>
1587 <entry>dynamic</entry>
1591 <entry><option>-ddump-rules</option></entry>
1592 <entry>Dump rules</entry>
1593 <entry>dynamic</entry>
1597 <entry><option>-ddump-sat</option></entry>
1598 <entry>Dump saturated output</entry>
1599 <entry>dynamic</entry>
1603 <entry><option>-ddump-simpl</option></entry>
1604 <entry>Dump final simplifier output</entry>
1605 <entry>dynamic</entry>
1609 <entry><option>-ddump-simpl-iterations</option></entry>
1610 <entry>Dump output from each simplifier iteration</entry>
1611 <entry>dynamic</entry>
1615 <entry><option>-ddump-spec</option></entry>
1616 <entry>Dump specialiser output</entry>
1617 <entry>dynamic</entry>
1621 <entry><option>-ddump-stg</option></entry>
1622 <entry>Dump final STG</entry>
1623 <entry>dynamic</entry>
1627 <entry><option>-ddump-stranal</option></entry>
1628 <entry>Dump strictness analyser output</entry>
1629 <entry>dynamic</entry>
1633 <entry><option>-ddump-tc</option></entry>
1634 <entry>Dump typechecker output</entry>
1635 <entry>dynamic</entry>
1639 <entry><option>-ddump-types</option></entry>
1640 <entry>Dump type signatures</entry>
1641 <entry>dynamic</entry>
1645 <entry><option>-ddump-usagesp</option></entry>
1646 <entry>Dump UsageSP analysis output</entry>
1647 <entry>dynamic</entry>
1651 <entry><option>-ddump-worker-wrapper</option></entry>
1652 <entry>Dump worker-wrapper output</entry>
1653 <entry>dynamic</entry>
1657 <entry><option>-ddump-rn-trace</option></entry>
1658 <entry>Trace renamer</entry>
1659 <entry>dynamic</entry>
1663 <entry><option>-ddump-rn-stats</option></entry>
1664 <entry>Renamer stats</entry>
1665 <entry>dynamic</entry>
1669 <entry><option>-ddump-stix</option></entry>
1670 <entry>Native code generator intermediate form</entry>
1671 <entry>dynamic</entry>
1675 <entry><option>-ddump-simpl-stats</option></entry>
1676 <entry>Dump simplifier stats</entry>
1677 <entry>dynamic</entry>
1681 <entry><option>-dppr-debug</option></entry>
1682 <entry>Turn on debug printing (more verbose)</entry>
1683 <entry>static</entry>
1687 <entry><option>-dppr-noprags</option></entry>
1688 <entry>Don't output pragma info in dumps</entry>
1689 <entry>static</entry>
1693 <entry><option>-dppr-user-length</option></entry>
1694 <entry>Set the depth for printing expressions in error msgs</entry>
1695 <entry>static</entry>
1699 <entry><option>-dsource-stats</option></entry>
1700 <entry>Dump haskell source stats</entry>
1701 <entry>dynamic</entry>
1705 <entry><option>-dstg-lint</option></entry>
1706 <entry>STG pass sanity checking</entry>
1707 <entry>dynamic</entry>
1711 <entry><option>-dstg-stats</option></entry>
1712 <entry>Dump STG stats</entry>
1713 <entry>dynamic</entry>
1717 <entry><option>-dusagesp-lint</option></entry>
1718 <entry>UsageSP sanity checker</entry>
1719 <entry>dynamic</entry>
1723 <entry><option>-dverbose-core2core</option></entry>
1724 <entry>Show output from each core-to-core pass</entry>
1725 <entry>dynamic</entry>
1729 <entry><option>-dverbose-stg2stg</option></entry>
1730 <entry>Show output from each STG-to-STG pass</entry>
1731 <entry>dynamic</entry>
1735 <entry><option>-unreg</option></entry>
1736 <entry>Enable unregisterised compilation</entry>
1737 <entry>static</entry>
1746 <title>Misc compiler options</title>
1749 <tgroup cols="3" align="left" colsep="1" rowsep="1">
1753 <entry>Description</entry>
1754 <entry>Static/Dynamic</entry>
1755 <entry>Reverse</entry>
1760 <entry><option>-femit-extern-decls</option></entry>
1762 <entry>static</entry>
1766 <entry><option>-fglobalise-toplev-names</option></entry>
1767 <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1768 <entry>static</entry>
1772 <entry><option>-fno-hi-version-check</option></entry>
1773 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1774 <entry>static</entry>
1778 <entry><option>-dno-black-holing</option></entry>
1779 <entry>Turn off black holing (probably doesn't work)</entry>
1780 <entry>static</entry>
1784 <entry><option>-fno-method-sharing</option></entry>
1785 <entry>Don't share specialisations of overloaded functions</entry>
1786 <entry>static</entry>
1790 <entry><option>-fno-prune-decls</option></entry>
1791 <entry>Renamer: don't prune declarations</entry>
1792 <entry>static</entry>
1796 <entry><option>-fhistory-size</option></entry>
1797 <entry>Set simplification history size</entry>
1798 <entry>static</entry>
1802 <entry><option>-funregisterised</option></entry>
1803 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1804 <entry>static</entry>
1808 <entry><option>-fno-asm-mangling</option></entry>
1809 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1810 <entry>static</entry>
1824 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
1825 , ( "Rghc-timing" , NoArg (enableTimingStats) )
1831 ;;; Local Variables: ***
1833 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***