1 <sect1 id="flag-reference">
2 <title>Flag reference</title>
4 <para>This section is a quick-reference for GHC's command-line
5 flags. For each flag, we also list its static/dynamic status (see
6 <xref linkend="static-dynamic-flags">), and the flag's opposite
10 <title>Help and verbosity options (<xref linkend="options-help">)</title>
13 <tgroup cols=3 align=left colsep=1 rowsep=1>
17 <entry>Description</entry>
18 <entry>Static/Dynamic</entry>
19 <entry>Reverse</entry>
24 <entry><option>-?</option></entry>
30 <entry><option>-help</option></entry>
36 <entry><option>-v</option></entry>
37 <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
38 <entry>dynamic</entry>
42 <entry><option>-v</option><replaceable>n</replaceable></entry>
43 <entry>set verbosity level</entry>
44 <entry>dynamic</entry>
48 <entry><option>--version</option></entry>
49 <entry>display GHC version</entry>
54 <entry><option>--numeric-version</option></entry>
55 <entry>display GHC version (numeric only)</entry>
65 <title>Which phases to run (<xref linkend="options-order">)</title>
68 <tgroup cols=3 align=left colsep=1 rowsep=1>
72 <entry>Description</entry>
73 <entry>Static/Dynamic</entry>
74 <entry>Reverse</entry>
79 <entry><option>-E</option></entry>
80 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
85 <entry><option>-C</option></entry>
86 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
91 <entry><option>-S</option></entry>
92 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
97 <entry><option>-c</option></entry>
98 <entry>Stop after compiling to object code (<literal>.o</literal> file)</entry>
108 <title>Redirecting output (<xref linkend="options-output">)</title>
111 <tgroup cols=3 align=left colsep=1 rowsep=1>
115 <entry>Description</entry>
116 <entry>Static/Dynamic</entry>
117 <entry>Reverse</entry>
122 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
123 <entry>set the suffix to use for interface files</entry>
124 <entry>static</entry>
128 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
129 <entry>set output filename</entry>
130 <entry>static</entry>
134 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
135 <entry>set output directory</entry>
136 <entry>static</entry>
140 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
141 <entry>set the filename in which to put the interface</entry>
142 <entry>static</entry>
146 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
147 <entry>set the output file suffix</entry>
148 <entry>static</entry>
157 <title>Keeping intermediate files (<xref linkend="keeping-intermediates">)</title>
160 <tgroup cols=3 align=left colsep=1 rowsep=1>
164 <entry>Description</entry>
165 <entry>Static/Dynamic</entry>
166 <entry>Reverse</entry>
171 <entry><option>-keep-hc-file</option></entry>
172 <entry>retain intermediate <literal>.hc</literal> files</entry>
173 <entry>static</entry>
177 <entry><option>-keep-s-file</option></entry>
178 <entry>retain intermediate <literal>.s</literal> files</entry>
179 <entry>static</entry>
183 <entry><option>-keep-raw-s-file</option></entry>
184 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
185 <entry>static</entry>
189 <entry><option>-keep-tmp-files</option></entry>
190 <entry>retain all intermediate temporary files</entry>
191 <entry>static</entry>
200 <title>Temporary files (<xref linkend="temp-files">)</title>
203 <tgroup cols=3 align=left colsep=1 rowsep=1>
207 <entry>Description</entry>
208 <entry>Static/Dynamic</entry>
209 <entry>Reverse</entry>
214 <entry><option>-tmpdir</option></entry>
215 <entry>set the directory for temporary files</entry>
216 <entry>static</entry>
225 <title>Finding imports (<xref linkend="options-finding-imports">)</title>
228 <tgroup cols=3 align=left colsep=1 rowsep=1>
233 <entry>Description</entry>
234 <entry>Static/Dynamic</entry>
235 <entry>Reverse</entry>
240 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
241 <entry>add <replaceable>dir</replaceable>,
242 <replaceable>dir2</replaceable>, etc. to import path</entry>
243 <entry>static</entry>
247 <entry><option>-i</option></entry>
248 <entry>Empty the import directory list</entry>
249 <entry>static</entry>
258 <title>Interface file options (<xref linkend="hi-options">)</title>
261 <tgroup cols=3 align=left colsep=1 rowsep=1>
266 <entry>Description</entry>
267 <entry>Static/Dynamic</entry>
268 <entry>Reverse</entry>
273 <entry><option>-ohi</option> <replaceable>file</replaceable></entry>
274 <entry>Put the interface file in <replaceable>file</replaceable></entry>
275 <entry>static</entry>
279 <entry><option>-ddump-hi</option></entry>
280 <entry>Dump the new interface to stdout</entry>
281 <entry>dynamic</entry>
285 <entry><option>-ddump-hi-diffs</option></entry>
286 <entry>Show the differences vs. the old interface</entry>
287 <entry>dynamic</entry>
296 <title>Recompilation checking (<xref linkend="recomp">)</title>
299 <tgroup cols=3 align=left colsep=1 rowsep=1>
304 <entry>Description</entry>
305 <entry>Static/Dynamic</entry>
306 <entry>Reverse</entry>
311 <entry><option>-no-recomp</option></entry>
312 <entry>Turn off recompilation checking</entry>
313 <entry>static</entry>
314 <entry><option>-recomp</option></entry>
322 <title>Packages (<xref linkend="packages">)</title>
324 <tgroup cols=3 align=left colsep=1 rowsep=1>
328 <entry>Description</entry>
329 <entry>Static/Dynamic</entry>
330 <entry>Reverse</entry>
335 <entry><option>--add-package</option></entry>
336 <entry>Install a new package</entry>
337 <entry>static</entry>
341 <entry><option>--delete-package</option> <replaceable>name</replaceable></entry>
342 <entry>Delete package entry <replaceable>name</replaceable></entry>
343 <entry>static</entry>
347 <entry><option>--list-packages</option></entry>
348 <entry>List installed packages</entry>
349 <entry>static</entry>
353 <entry><option>-package</option> <replaceable>name</replaceable></entry>
354 <entry>Use package <replaceable>name</replaceable></entry>
355 <entry>static</entry>
359 <entry><option>-package-name</option> <replaceable>name</replaceable></entry>
360 <entry>Compile code for package <replaceable>name</replaceable></entry>
361 <entry>static</entry>
370 <title>Language options (<xref linkend="options-language">)</title>
373 <tgroup cols=3 align=left colsep=1 rowsep=1>
377 <entry>Description</entry>
378 <entry>Static/Dynamic</entry>
379 <entry>Reverse</entry>
384 <entry><option>-fallow-overlapping-instances</option></entry>
386 <entry>dynamic</entry>
387 <entry><option>-fno-allow-overlapping-instances</option></entry>
390 <entry><option>-fallow-undecidable-instances</option></entry>
391 <entry>Enable undecidable instances</entry>
392 <entry>dynamic</entry>
393 <entry><option>-fno-allow-undecidable-instances</option></entry>
396 <entry><option>-fgenerics</option></entry>
397 <entry>Enable generics</entry>
398 <entry>dynamic</entry>
399 <entry><option>-fno-fgenerics</option></entry>
402 <entry><option>-fglasgow-exts</option></entry>
403 <entry>Enable most language extensions</entry>
404 <entry>dynamic</entry>
405 <entry><option>-fno-glasgow-exts</option></entry>
408 <entry><option>-fignore-asserts</option></entry>
409 <entry>Ignore assertions</entry>
410 <entry>dynamic</entry>
411 <entry><option>-fno-ignore-asserts</option></entry>
414 <entry><option>-fno-implicit-prelude</option></entry>
415 <entry>Don't implicitly <literal>import Prelude</literal></entry>
416 <entry>dynamic</entry>
420 <entry><option>-fno-monomorphism-restriction</option></entry>
421 <entry>Disable the monomorphism restriction</entry>
422 <entry>dynamic</entry>
423 <entry><option>-</option></entry>
426 <entry><option>-firrefutable-tuples</option></entry>
427 <entry>Make tuple pattern matching irrefutable</entry>
428 <entry>dynamic</entry>
429 <entry><option>-fno-irrefutable-tuples</option></entry>
432 <entry><option>-fcontext-stack</option><replaceable>n</replaceable></entry>
433 <entry>set the limit for context reduction</entry>
434 <entry>dynamic</entry>
435 <entry><option>-</option></entry>
443 <title>Warnings (<xref linkend="options-sanity">)</title>
446 <tgroup cols=3 align=left colsep=1 rowsep=1>
450 <entry>Description</entry>
451 <entry>Static/Dynamic</entry>
452 <entry>Reverse</entry>
457 <entry><option>-W</option></entry>
458 <entry>enable normal warnings</entry>
459 <entry>dynamic</entry>
460 <entry><option>-w</option></entry>
463 <entry><option>-w</option></entry>
464 <entry>disable all warnings</entry>
465 <entry>dynamic</entry>
469 <entry><option>-Wall</option></entry>
470 <entry>enable all warnings</entry>
471 <entry>dynamic</entry>
472 <entry><option>-w</option></entry>
476 <entry><option>-fwarn-deprecations</option></entry>
477 <entry>warn about uses of functions & types that are deprecated</entry>
478 <entry>dynamic</entry>
479 <entry><option>-fno-warn-deprecations</option></entry>
483 <entry><option>-fwarn-duplicate-exports</option></entry>
484 <entry>warn when an entity is exported multiple times</entry>
485 <entry>dynamic</entry>
486 <entry><option>-fno-warn-duplicate-exports</option></entry>
490 <entry><option>-fwarn-hi-shadowing</option></entry>
491 <entry>warn when a <literal>.hi</literal> file in the
492 current directory shadows a library</entry>
493 <entry>dynamic</entry>
494 <entry><option>-fno-warn-hi-shadowing</option></entry>
498 <entry><option>-fwarn-incomplete-patterns</option></entry>
499 <entry>warn when a pattern match could fail</entry>
500 <entry>dynamic</entry>
501 <entry><option>-fno-warn-incomplete-patterns</option></entry>
505 <entry><option>-fwarn-missing-fields</option></entry>
506 <entry>warn when fields of a record are uninitialised</entry>
507 <entry>dynamic</entry>
508 <entry><option>-fno-warn-missing-fields</option></entry>
512 <entry><option>-fwarn-missing-methods</option></entry>
513 <entry>warn when class methods are undefined</entry>
514 <entry>dynamic</entry>
515 <entry><option>-fno-warn-missing-methods</option></entry>
519 <entry><option>-fwarn-missing-signatures</option></entry>
520 <entry>warn about top-level functions without signatures</entry>
521 <entry>dynamic</entry>
522 <entry><option>-fno-warn-missing-signatures</option></entry>
526 <entry><option>-fwarn-name-shadowing</option></entry>
527 <entry>warn when names are shadowed</entry>
528 <entry>dynamic</entry>
529 <entry><option>-fno-warn-name-shadowing</option></entry>
533 <entry><option>-fwarn-overlapping-patterns</option></entry>
534 <entry>warn about overlapping patterns</entry>
535 <entry>dynamic</entry>
536 <entry><option>-fno-warn-overlapping-patterns</option></entry>
540 <entry><option>-fwarn-simple-patterns</option></entry>
541 <entry>warn about lambda-patterns that can fail</entry>
542 <entry>dynamic</entry>
543 <entry><option>-fno-warn-simple-patterns</option></entry>
547 <entry><option>-fwarn-type-defaults</option></entry>
548 <entry>warn when defaulting happens</entry>
549 <entry>dynamic</entry>
550 <entry><option>-fno-warn-type-defaults</option></entry>
554 <entry><option>-fwarn-unused-binds</option></entry>
555 <entry>warn about bindings that are unused</entry>
556 <entry>dynamic</entry>
557 <entry><option>-fno-warn-unused-binds</option></entry>
561 <entry><option>-fwarn-unused-imports</option></entry>
562 <entry>warn about unnecessary imports</entry>
563 <entry>dynamic</entry>
564 <entry><option>-fno-warn-unused-imports</option></entry>
568 <entry><option>-fwarn-unused-matches</option></entry>
569 <entry>warn about variables in patterns that aren't used</entry>
570 <entry>dynamic</entry>
571 <entry><option>-fno-warn-unused-matches</option></entry>
580 <title>Optimisation levels (<xref linkend="options-optimise">)</title>
583 <tgroup cols=3 align=left colsep=1 rowsep=1>
587 <entry>Description</entry>
588 <entry>Static/Dynamic</entry>
589 <entry>Reverse</entry>
594 <entry><option>-O</option></entry>
595 <entry>Enable default optimisation (level 1)</entry>
596 <entry>static</entry>
597 <entry><option>-O0</option></entry>
600 <entry><option>-O</option><replaceable>n</replaceable></entry>
601 <entry>Set optimisation level <replaceable>n</replaceable></entry>
602 <entry>static</entry>
603 <entry><option>-O0</option></entry>
606 <entry><option>-O2-for-C</option></entry>
607 <entry>Run <command>gcc</command> with <option>-O2</option></entry>
608 <entry>static</entry>
617 <title>Individual optimisations (<xref linkend="options-f">)</title>
620 <tgroup cols=3 align=left colsep=1 rowsep=1>
624 <entry>Description</entry>
625 <entry>Static/Dynamic</entry>
626 <entry>Reverse</entry>
631 <entry><option>-fall-strict</option></entry>
632 <entry>Make everything strict</entry>
633 <entry>dynamic</entry>
634 <entry><option>-fno-all-strict</option></entry>
638 <entry><option>-fcase-merge</option></entry>
639 <entry>Enable case-merging</entry>
640 <entry>static</entry>
641 <entry><option>-fno-case-merge</option></entry>
645 <entry><option>-fdicts-strict</option></entry>
646 <entry>Make dictionaries strict</entry>
647 <entry>dynamic</entry>
648 <entry><option>-fno-dicts-strict</option></entry>
652 <entry><option>-fdo-eta-reduction</option></entry>
653 <entry>Enable eta-reduction</entry>
654 <entry>static</entry>
655 <entry><option>-fno-do-eta-reduction</option></entry>
659 <entry><option>-fdo-lambda-eta-expansion</option></entry>
660 <entry>Enable lambda eta-reduction</entry>
661 <entry>static</entry>
662 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
666 <entry><option>-fexcess-precision</option></entry>
667 <entry>Enable excess intermediate precision</entry>
668 <entry>static</entry>
669 <entry><option>-fno-excess-precision</option></entry>
673 <entry><option>-ffoldr-build-on</option></entry>
674 <entry>Enable foldr-build optimisation</entry>
675 <entry>static</entry>
676 <entry><option>-fno-foldr-build-on</option></entry>
680 <entry><option>-fignore-asserts</option></entry>
681 <entry>Ignore assertions in the source</entry>
682 <entry>static</entry>
683 <entry><option>-fno-ignore-asserts</option></entry>
687 <entry><option>-fignore-interface-pragmas</option></entry>
688 <entry>Ignore pragmas in interface files</entry>
689 <entry>static</entry>
690 <entry><option>-fno-ignore-interface-pragmas</option></entry>
694 <entry><option>-flet-no-escape</option></entry>
695 <entry>Enable let-no-escape optimisation</entry>
696 <entry>static</entry>
697 <entry><option>-fno-let-no-escape</option></entry>
701 <entry><option>-fliberate-case-threshold</option></entry>
702 <entry>Tweak the liberate-case optimisation</entry>
703 <entry>static</entry>
704 <entry><option>-fno-liberate-case-threshold</option></entry>
708 <entry><option>-fomit-interface-pragmas</option></entry>
709 <entry>Don't generate interface pragmas</entry>
710 <entry>static</entry>
711 <entry><option>-fno-omit-interface-pragmas</option></entry>
715 <entry><option>-fmax-simplifier-iterations</option></entry>
716 <entry>Set the max iterations for the simplifier</entry>
717 <entry>static</entry>
722 <entry><option>-fno-cpr</option></entry>
723 <entry>Turn off CPR analysis</entry>
724 <entry>static</entry>
729 <entry><option>-fno-cse</option></entry>
730 <entry>Turn off common sub-expression</entry>
731 <entry>static</entry>
736 <entry><option>-fno-pre-inlining</option></entry>
737 <entry>Turn off pre-inlining</entry>
738 <entry>static</entry>
743 <entry><option>-fno-strictness</option></entry>
744 <entry>Turn off strictness analysis</entry>
745 <entry>static</entry>
750 <entry><option>-fnumbers-strict</option></entry>
751 <entry>Make numbers strict</entry>
752 <entry>dynamic</entry>
753 <entry><option>-fno-numbers-strict</option></entry>
757 <entry><option>-funbox-strict-fields</option></entry>
758 <entry>Flatten strict constructor fields</entry>
759 <entry>static</entry>
760 <entry><option>-fno-unbox-strict-fields</option></entry>
764 <entry><option>-funfolding-creation-threshold</option></entry>
765 <entry>Tweak unfolding settings</entry>
766 <entry>static</entry>
767 <entry><option>-fno-unfolding-creation-threshold</option></entry>
771 <entry><option>-funfolding-fun-discount</option></entry>
772 <entry>Tweak unfolding settings</entry>
773 <entry>static</entry>
774 <entry><option>-fno-unfolding-fun-discount</option></entry>
778 <entry><option>-funfolding-keeness-factor</option></entry>
779 <entry>Tweak unfolding settings</entry>
780 <entry>static</entry>
781 <entry><option>-fno-unfolding-keeness-factor</option></entry>
785 <entry><option>-funfolding-update-in-place</option></entry>
786 <entry>Tweak unfolding settings</entry>
787 <entry>static</entry>
788 <entry><option>-fno-unfolding-update-in-place</option></entry>
792 <entry><option>-funfolding-use-threshold</option></entry>
793 <entry>Tweak unfolding settings</entry>
794 <entry>static</entry>
795 <entry><option>-fno-unfolding-use-threshold</option></entry>
799 <entry><option>-fusagesp</option></entry>
800 <entry>Turn on UsageSP analysis</entry>
801 <entry>static</entry>
802 <entry><option>-fno-usagesp</option></entry>
810 <title>Profiling options (<xref linkend="profiling">)</title>
813 <tgroup cols=3 align=left colsep=1 rowsep=1>
817 <entry>Description</entry>
818 <entry>Static/Dynamic</entry>
819 <entry>Reverse</entry>
824 <entry><option>-auto</option></entry>
825 <entry>Auto-add <literal>_scc_</literal>s to all
826 exported functions</entry>
827 <entry>static</entry>
828 <entry><option>-no-auto</option></entry>
831 <entry><option>-auto-all</option></entry>
832 <entry>Auto-add <literal>_scc_</literal>s to all
833 top-level functions</entry>
834 <entry>static</entry>
835 <entry><option>-no-auto-all</option></entry>
838 <entry><option>-auto-dicts</option></entry>
839 <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
840 <entry>static</entry>
841 <entry><option>-no-auto-dicts</option></entry>
844 <entry><option>-caf-all</option></entry>
845 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
846 <entry>static</entry>
847 <entry><option>-no-caf-all</option></entry>
850 <entry><option>-prof</option></entry>
851 <entry>Turn on profiling</entry>
852 <entry>static</entry>
856 <entry><option>-ticky</option></entry>
857 <entry>Turn on ticky-ticky profiling</entry>
858 <entry>static</entry>
867 <title>Parallelism options (<xref linkend="sec-using-parallel">)</title>
870 <tgroup cols=3 align=left colsep=1 rowsep=1>
874 <entry>Description</entry>
875 <entry>Static/Dynamic</entry>
876 <entry>Reverse</entry>
881 <entry><option>-gransim</option></entry>
882 <entry>Enable GRANSIM</entry>
883 <entry>static</entry>
887 <entry><option>-parallel</option></entry>
888 <entry>Enable Parallel Haskell</entry>
889 <entry>static</entry>
893 <entry><option>-smp</option></entry>
894 <entry>Enable SMP support</entry>
895 <entry>static</entry>
904 <title>C pre-processor options (<xref linkend="c-pre-processor">)</title>
907 <tgroup cols=3 align=left colsep=1 rowsep=1>
911 <entry>Description</entry>
912 <entry>Static/Dynamic</entry>
913 <entry>Reverse</entry>
918 <entry><option>-cpp</option></entry>
919 <entry>Run the C pre-processor on Haskell source files</entry>
920 <entry>dynamic</entry>
924 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
925 <entry>Define a symbol in the C pre-processor</entry>
926 <entry>dynamic</entry>
927 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
930 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
931 <entry>Undefine a symbol in the C pre-processor</entry>
932 <entry>dynamic</entry>
936 <entry><option>-I</option><replaceable>dir</replaceable></entry>
937 <entry>Add <replaceable>dir</replaceable> to the
938 directory search list for <literal>#include</literal> files</entry>
939 <entry>static</entry>
948 <title>C compiler options (<xref linkend="options-C-compiler">)</title>
950 <tgroup cols=3 align=left colsep=1 rowsep=1>
954 <entry>Description</entry>
955 <entry>Static/Dynamic</entry>
956 <entry>Reverse</entry>
961 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
962 <entry>Include <replaceable>file</replaceable> when
963 compiling the <filename>.hc</filename> file</entry>
964 <entry>dynamic</entry>
973 <title>Code generation options (<xref linkend="options-codegen">)</title>
976 <tgroup cols=3 align=left colsep=1 rowsep=1>
980 <entry>Description</entry>
981 <entry>Static/Dynamic</entry>
982 <entry>Reverse</entry>
987 <entry><option>-fasm</option></entry>
988 <entry>Use the native code generator</entry>
989 <entry>dynamic</entry>
990 <entry>-fvia-C</entry>
993 <entry><option>-fvia-C</option></entry>
994 <entry>Compile via C</entry>
995 <entry>dynamic</entry>
1004 <title>Linking options (<xref linkend="options-linker">)</title>
1007 <tgroup cols=3 align=left colsep=1 rowsep=1>
1011 <entry>Description</entry>
1012 <entry>Static/Dynamic</entry>
1013 <entry>Reverse</entry>
1018 <entry><option>-dynamic</option></entry>
1019 <entry>Use dynamic Haskell libraries (if available)</entry>
1020 <entry>static</entry>
1024 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1025 <entry>Link in library <replaceable>lib</replaceable></entry>
1026 <entry>static</entry>
1030 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1031 <entry>Add <replaceable>dir</replaceable> to the list of
1032 directories searched for libraries</entry>
1033 <entry>static</entry>
1037 <entry><option>-package</option> <replaceable>name</replaceable></entry>
1038 <entry>Link in package <replaceable>name</replaceable></entry>
1039 <entry>static</entry>
1043 <entry><option>-split-objs</option></entry>
1044 <entry>Split objects (for libraries)</entry>
1045 <entry>static</entry>
1049 <entry><option>-static</option></entry>
1050 <entry>Use static Haskell libraries</entry>
1051 <entry>static</entry>
1055 <entry><option>-no-hs-main</option></entry>
1056 <entry>Don't asssume this program contains <literal>main</literal></entry>
1057 <entry>static</entry>
1066 <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1069 <tgroup cols=3 align=left colsep=1 rowsep=1>
1073 <entry>Description</entry>
1074 <entry>Static/Dynamic</entry>
1075 <entry>Reverse</entry>
1080 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1081 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1082 <entry>static</entry>
1086 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1087 <entry>Use <replaceable>cmd</replaceable> as the C
1088 pre-processor (with <option>-cpp</option> only)</entry>
1089 <entry>static</entry> <entry>-</entry>
1092 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1093 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1094 <entry>static</entry>
1098 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1099 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1100 <entry>static</entry>
1104 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1105 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1106 <entry>static</entry>
1110 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1111 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1112 <entry>static</entry>
1116 <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1117 <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1118 <entry>static</entry>
1124 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1125 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1126 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1127 <indexterm><primary><option>-pgma</option></primary></indexterm>
1128 <indexterm><primary><option>-pgml</option></primary></indexterm>
1129 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1130 <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1135 <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1138 <tgroup cols=3 align=left colsep=1 rowsep=1>
1142 <entry>Description</entry>
1143 <entry>Static/Dynamic</entry>
1144 <entry>Reverse</entry>
1149 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1150 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1151 <entry>dynamic</entry>
1155 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1156 <entry>pass <replaceable>option</replaceable> to cpp (with
1157 <option>-cpp</option> only)</entry>
1158 <entry>dynamic</entry>
1162 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1163 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1164 <entry>dynamic</entry>
1168 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1169 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1170 <entry>dynamic</entry>
1174 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1175 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1176 <entry>static</entry>
1180 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1181 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1182 <entry>static</entry>
1186 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1187 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1188 <entry>static</entry>
1197 <title>Platform-specific options (<xref linkend="options-platform">)</title>
1200 <tgroup cols=3 align=left colsep=1 rowsep=1>
1204 <entry>Description</entry>
1205 <entry>Static/Dynamic</entry>
1206 <entry>Reverse</entry>
1211 <entry><option>-mv8</option></entry>
1212 <entry>(SPARC only) enable version 8 support</entry>
1213 <entry>static</entry>
1217 <entry><option>-monly-[32]-regs</option></entry>
1218 <entry>(x86 only) give some registers back to the C compiler</entry>
1219 <entry>dynamic</entry>
1228 <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1231 <tgroup cols=3 align=left colsep=1 rowsep=1>
1235 <entry>Description</entry>
1236 <entry>Static/Dynamic</entry>
1237 <entry>Reverse</entry>
1242 <entry><option>-dcore-lint</option></entry>
1243 <entry>Turn on internal sanity checking</entry>
1244 <entry>dynamic</entry>
1248 <entry><option>-ddump-absC</option></entry>
1249 <entry>Dump abstract C</entry>
1250 <entry>dynamic</entry>
1254 <entry><option>-ddump-asm</option></entry>
1255 <entry>Dump assembly</entry>
1256 <entry>dynamic</entry>
1260 <entry><option>-ddump-bcos</option></entry>
1261 <entry>Dump interpreter byte code</entry>
1262 <entry>dynamic</entry>
1266 <entry><option>-ddump-cpranal</option></entry>
1267 <entry>Dump output from CPR analysis</entry>
1268 <entry>dynamic</entry>
1272 <entry><option>-ddump-cse</option></entry>
1273 <entry>Dump CSE output</entry>
1274 <entry>dynamic</entry>
1278 <entry><option>-ddump-deriv</option></entry>
1279 <entry>Dump deriving output</entry>
1280 <entry>dynamic</entry>
1284 <entry><option>-ddump-ds</option></entry>
1285 <entry>Dump desugarer output</entry>
1286 <entry>dynamic</entry>
1290 <entry><option>-ddump-flatC</option></entry>
1291 <entry>Dump “flat” C</entry>
1292 <entry>dynamic</entry>
1296 <entry><option>-ddump-foreign</option></entry>
1297 <entry>Dump <literal>foreign export</literal> stubs</entry>
1298 <entry>dynamic</entry>
1302 <entry><option>-ddump-inlinings</option></entry>
1303 <entry>Dump inlining info</entry>
1304 <entry>dynamic</entry>
1308 <entry><option>-ddump-occur-anal</option></entry>
1309 <entry>Dump occurrence analysis output</entry>
1310 <entry>dynamic</entry>
1314 <entry><option>-ddump-parsed</option></entry>
1315 <entry>Dump parse tree</entry>
1316 <entry>dynamic</entry>
1320 <entry><option>-ddump-realC</option></entry>
1321 <entry>Dump “real” C</entry>
1322 <entry>dynamic</entry>
1326 <entry><option>-ddump-rn</option></entry>
1327 <entry>Dump renamer output</entry>
1328 <entry>dynamic</entry>
1332 <entry><option>-ddump-rules</option></entry>
1333 <entry>Dump rules</entry>
1334 <entry>dynamic</entry>
1338 <entry><option>-ddump-sat</option></entry>
1339 <entry>Dump saturated output</entry>
1340 <entry>dynamic</entry>
1344 <entry><option>-ddump-simpl</option></entry>
1345 <entry>Dump final simplifier output</entry>
1346 <entry>dynamic</entry>
1350 <entry><option>-ddump-simpl-iterations</option></entry>
1351 <entry>Dump output from each simplifier iteration</entry>
1352 <entry>dynamic</entry>
1356 <entry><option>-ddump-spec</option></entry>
1357 <entry>Dump specialiser output</entry>
1358 <entry>dynamic</entry>
1362 <entry><option>-ddump-stg</option></entry>
1363 <entry>Dump final STG</entry>
1364 <entry>dynamic</entry>
1368 <entry><option>-ddump-stranal</option></entry>
1369 <entry>Dump strictness analyser output</entry>
1370 <entry>dynamic</entry>
1374 <entry><option>-ddump-tc</option></entry>
1375 <entry>Dump typechecker output</entry>
1376 <entry>dynamic</entry>
1380 <entry><option>-ddump-types</option></entry>
1381 <entry>Dump type signatures</entry>
1382 <entry>dynamic</entry>
1386 <entry><option>-ddump-usagesp</option></entry>
1387 <entry>Dump UsageSP analysis output</entry>
1388 <entry>dynamic</entry>
1392 <entry><option>-ddump-worker-wrapper</option></entry>
1393 <entry>Dump worker-wrapper output</entry>
1394 <entry>dynamic</entry>
1398 <entry><option>-ddump-rn-trace</option></entry>
1399 <entry>Trace renamer</entry>
1400 <entry>dynamic</entry>
1404 <entry><option>-ddump-rn-stats</option></entry>
1405 <entry>Renamer stats</entry>
1406 <entry>dynamic</entry>
1410 <entry><option>-ddump-stix</option></entry>
1411 <entry>Native code generator intermediate form</entry>
1412 <entry>dynamic</entry>
1416 <entry><option>-ddump-simpl-stats</option></entry>
1417 <entry>Dump simplifier stats</entry>
1418 <entry>dynamic</entry>
1422 <entry><option>-dppr-debug</option></entry>
1423 <entry>Turn on debug printing (more verbose)</entry>
1424 <entry>static</entry>
1428 <entry><option>-dppr-noprags</option></entry>
1429 <entry>Don't output pragma info in dumps</entry>
1430 <entry>static</entry>
1434 <entry><option>-dppr-user-length</option></entry>
1435 <entry>Set the depth for printing expressions in error msgs</entry>
1436 <entry>static</entry>
1440 <entry><option>-dsource-stats</option></entry>
1441 <entry>Dump haskell source stats</entry>
1442 <entry>dynamic</entry>
1446 <entry><option>-dstg-lint</option></entry>
1447 <entry>STG pass sanity checking</entry>
1448 <entry>dynamic</entry>
1452 <entry><option>-dstg-stats</option></entry>
1453 <entry>Dump STG stats</entry>
1454 <entry>dynamic</entry>
1458 <entry><option>-dusagesp-lint</option></entry>
1459 <entry>UsageSP sanity checker</entry>
1460 <entry>dynamic</entry>
1464 <entry><option>-dverbose-core2core</option></entry>
1465 <entry>Show output from each core-to-core pass</entry>
1466 <entry>dynamic</entry>
1470 <entry><option>-dverbose-stg2stg</option></entry>
1471 <entry>Show output from each STG-to-STG pass</entry>
1472 <entry>dynamic</entry>
1476 <entry><option>-unreg</option></entry>
1477 <entry>Enable unregisterised compilation</entry>
1478 <entry>static</entry>
1487 <title>Misc compiler options</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>-funfold-casms-in-hi-file</option></entry>
1502 <entry>Allow casms in unfoldings</entry>
1503 <entry>static</entry>
1507 <entry><option>-femit-extern-decls</option></entry>
1509 <entry>static</entry>
1513 <entry><option>-fglobalise-toplev-names</option></entry>
1514 <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1515 <entry>static</entry>
1519 <entry><option>-fno-hi-version-check</option></entry>
1520 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1521 <entry>static</entry>
1525 <entry><option>-dno-black-holing</option></entry>
1526 <entry>Turn off black holing (probably doesn't work)</entry>
1527 <entry>static</entry>
1531 <entry><option>-fno-method-sharing</option></entry>
1532 <entry>Don't share specialisations of overloaded functions</entry>
1533 <entry>static</entry>
1537 <entry><option>-fno-prune-decls</option></entry>
1538 <entry>Renamer: don't prune declarations</entry>
1539 <entry>static</entry>
1543 <entry><option>-fno-prune-tydecls</option></entry>
1544 <entry>Renamer: don't prune type declarations</entry>
1545 <entry>static</entry>
1549 <entry><option>-fhistory-size</option></entry>
1550 <entry>Set simplification history size</entry>
1551 <entry>static</entry>
1555 <entry><option>-funregisterised</option></entry>
1556 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1557 <entry>static</entry>
1561 <entry><option>-fno-asm-mangling</option></entry>
1562 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1563 <entry>static</entry>
1577 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
1578 , ( "Rghc-timing" , NoArg (enableTimingStats) )
1584 ;;; Local Variables: ***
1586 ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***