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="4" 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>-n</option></entry>
40 <entry>do a dry run</entry>
41 <entry>dynamic</entry>
45 <entry><option>-v</option></entry>
46 <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
47 <entry>dynamic</entry>
51 <entry><option>-v</option><replaceable>n</replaceable></entry>
52 <entry>set verbosity level</entry>
53 <entry>dynamic</entry>
57 <entry><option>-V</option></entry>
58 <entry>display GHC version</entry>
63 <entry><option>––version</option></entry>
64 <entry>display GHC version</entry>
69 <entry><option>––numeric-version</option></entry>
70 <entry>display GHC version (numeric only)</entry>
75 <entry><option>––print-libdir</option></entry>
76 <entry>display GHC library directory</entry>
81 <entry><option>-ferror-spans</option></entry>
82 <entry>output full span in error messages</entry>
87 <entry><option>-H</option><replaceable>size</replaceable></entry>
88 <entry>Set the minimum heap size to <replaceable>size</replaceable></entry>
93 <entry><option>-Rghc-timing</option></entry>
94 <entry>Summarise timing stats for GHC (same as <literal>+RTS -tstderr</literal>)</entry>
104 <title>Which phases to run</title>
106 <para><xref linkend="options-order"/></para>
109 <tgroup cols="4" align="left" colsep="1" rowsep="1">
113 <entry>Description</entry>
114 <entry>Static/Dynamic</entry>
115 <entry>Reverse</entry>
120 <entry><option>-E</option></entry>
121 <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
126 <entry><option>-C</option></entry>
127 <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
132 <entry><option>-S</option></entry>
133 <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
138 <entry><option>-c</option></entry>
139 <entry>Do not link</entry>
140 <entry>dynamic</entry>
144 <entry><option>-x</option> <replaceable>suffix</replaceable></entry>
145 <entry>Override default behaviour for source files</entry>
146 <entry>static</entry>
155 <title>Alternative modes of operation</title>
157 <para><xref linkend="modes"/></para>
160 <tgroup cols="4" align="left" colsep="1" rowsep="1">
164 <entry>Description</entry>
165 <entry>Static/Dynamic</entry>
166 <entry>Reverse</entry>
171 <entry><option>--interactive</option></entry>
172 <entry>Interactive mode - normally used by just running <command>ghci</command>;
173 see <xref linkend="ghci"/> for details.</entry>
178 <entry><option>--make</option></entry>
179 <entry>Build a multi-module Haskell program, automatically figuring out dependencies. Likely to be much easier, and faster, than using <command>make</command>;
180 see <xref linkend="make-mode"/> for details..</entry>
185 <entry><option>-e <replaceable>expr</replaceable></option></entry>
186 <entry>Evaluate <replaceable>expr</replaceable>;
187 see <xref linkend="eval-mode"/> for details.</entry>
192 <entry><option>-M</option></entry>
193 <entry>Generate dependency information suitable for use in a <filename>Makefile</filename>;
194 see <xref linkend="makefile-dependencies"/> for details.</entry>
204 <title>Redirecting output</title>
206 <para><xref linkend="options-output"/></para>
209 <tgroup cols="4" align="left" colsep="1" rowsep="1">
213 <entry>Description</entry>
214 <entry>Static/Dynamic</entry>
215 <entry>Reverse</entry>
220 <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
221 <entry>set the suffix to use for intermediate C files</entry>
222 <entry>dynamic</entry>
226 <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
227 <entry>set directory for interface files</entry>
228 <entry>dynamic</entry>
232 <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
233 <entry>set the suffix to use for interface files</entry>
234 <entry>dynamic</entry>
238 <entry><option>-o</option> <replaceable>filename</replaceable></entry>
239 <entry>set output filename</entry>
240 <entry>dynamic</entry>
244 <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
245 <entry>set output directory</entry>
246 <entry>dynamic</entry>
250 <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
251 <entry>set the filename in which to put the interface</entry>
252 <entry>dynamic</entry>
256 <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
257 <entry>set the output file suffix</entry>
258 <entry>dynamic</entry>
262 <entry><option>-stubdir</option> <replaceable>dir</replaceable></entry>
263 <entry>redirect FFi stub files</entry>
264 <entry>dynamic</entry>
273 <title>Keeping intermediate files</title>
275 <para><xref linkend="keeping-intermediates"/></para>
278 <tgroup cols="4" align="left" colsep="1" rowsep="1">
282 <entry>Description</entry>
283 <entry>Static/Dynamic</entry>
284 <entry>Reverse</entry>
289 <entry><option>-keep-hc-file</option></entry>
290 <entry>retain intermediate <literal>.hc</literal> files</entry>
291 <entry>dynamic</entry>
295 <entry><option>-keep-s-file</option></entry>
296 <entry>retain intermediate <literal>.s</literal> files</entry>
297 <entry>dynamic</entry>
301 <entry><option>-keep-raw-s-file</option></entry>
302 <entry>retain intermediate <literal>.raw_s</literal> files</entry>
303 <entry>dynamic</entry>
307 <entry><option>-keep-tmp-files</option></entry>
308 <entry>retain all intermediate temporary files</entry>
309 <entry>dynamic</entry>
318 <title>Temporary files</title>
320 <para><xref linkend="temp-files"/></para>
323 <tgroup cols="4" align="left" colsep="1" rowsep="1">
327 <entry>Description</entry>
328 <entry>Static/Dynamic</entry>
329 <entry>Reverse</entry>
334 <entry><option>-tmpdir</option></entry>
335 <entry>set the directory for temporary files</entry>
336 <entry>dynamic</entry>
345 <title>Finding imports</title>
347 <para><xref linkend="search-path"/></para>
350 <tgroup cols="4" align="left" colsep="1" rowsep="1">
355 <entry>Description</entry>
356 <entry>Static/Dynamic</entry>
357 <entry>Reverse</entry>
362 <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
363 <entry>add <replaceable>dir</replaceable>,
364 <replaceable>dir2</replaceable>, etc. to import path</entry>
365 <entry>static/<literal>:set</literal></entry>
369 <entry><option>-i</option></entry>
370 <entry>Empty the import directory list</entry>
371 <entry>static/<literal>:set</literal></entry>
380 <title>Interface file options</title>
382 <para><xref linkend="hi-options"/></para>
385 <tgroup cols="4" align="left" colsep="1" rowsep="1">
390 <entry>Description</entry>
391 <entry>Static/Dynamic</entry>
392 <entry>Reverse</entry>
397 <entry><option>-ddump-hi</option></entry>
398 <entry>Dump the new interface to stdout</entry>
399 <entry>dynamic</entry>
403 <entry><option>-ddump-hi-diffs</option></entry>
404 <entry>Show the differences vs. the old interface</entry>
405 <entry>dynamic</entry>
409 <entry><option>-ddump-minimal-imports</option></entry>
410 <entry>Dump a minimal set of imports</entry>
411 <entry>dynamic</entry>
415 <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
416 <entry>Read the interface in
417 <replaceable>file</replaceable> and dump it as text to
418 <literal>stdout</literal>.</entry>
428 <title>Recompilation checking</title>
430 <para><xref linkend="recomp"/></para>
433 <tgroup cols="4" align="left" colsep="1" rowsep="1">
438 <entry>Description</entry>
439 <entry>Static/Dynamic</entry>
440 <entry>Reverse</entry>
445 <entry><option>-fforce-recomp</option></entry>
446 <entry>Turn off recompilation checking; implied by any
447 <option>-ddump-X</option> option</entry>
448 <entry>dynamic</entry>
449 <entry><option>-fno-force-recomp</option></entry>
457 <title>Interactive-mode options</title>
459 <para><xref linkend="ghci-dot-files"/></para>
462 <tgroup cols="4" align="left" colsep="1" rowsep="1">
466 <entry>Description</entry>
467 <entry>Static/Dynamic</entry>
468 <entry>Reverse</entry>
473 <entry><option>-ignore-dot-ghci</option></entry>
474 <entry>Disable reading of <filename>.ghci</filename> files</entry>
475 <entry>static</entry>
479 <entry><option>-read-dot-ghci</option></entry>
480 <entry>Enable reading of <filename>.ghci</filename> files</entry>
481 <entry>static</entry>
485 <entry><option>-short-ghci-banner</option></entry>
486 <entry>Display a one-line banner at GHCi startup</entry>
487 <entry>dynamic</entry>
491 <entry><option>-long-ghci-banner</option></entry>
492 <entry>Display a full banner at GHCi startup</entry>
493 <entry>dynamic</entry>
497 <entry><option>-fdebugging</option></entry>
498 <entry>Generate bytecode enabled for debugging</entry>
499 <entry>dynamic</entry>
503 <entry><option>-fno-debugging</option></entry>
504 <entry>Do not include debugging information in bytecodes</entry>
505 <entry>dynamic</entry>
509 <entry><option>-fno-print-bind-result</option></entry>
510 <entry><link linkend="ghci-stmts">Turn off printing of binding results in GHCi</link></entry>
511 <entry>dynamic</entry>
520 <title>Packages</title>
522 <para><xref linkend="packages"/></para>
525 <tgroup cols="4" align="left" colsep="1" rowsep="1">
529 <entry>Description</entry>
530 <entry>Static/Dynamic</entry>
531 <entry>Reverse</entry>
536 <entry><option>-package-name</option> <replaceable>P</replaceable></entry>
537 <entry>Compile to be part of package <replaceable>P</replaceable></entry>
538 <entry>dynamic</entry>
542 <entry><option>-package</option> <replaceable>P</replaceable></entry>
543 <entry>Expose package <replaceable>P</replaceable></entry>
544 <entry>static/<literal>:set</literal></entry>
548 <entry><option>-hide-all-packages</option></entry>
549 <entry>Hide all packages by default</entry>
550 <entry>static</entry>
554 <entry><option>-hide-package</option> <replaceable>name</replaceable></entry>
555 <entry>Hide package <replaceable>P</replaceable></entry>
556 <entry>static/<literal>:set</literal></entry>
560 <entry><option>-ignore-package</option> <replaceable>name</replaceable></entry>
561 <entry>Ignore package <replaceable>P</replaceable></entry>
562 <entry>static/<literal>:set</literal></entry>
566 <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
567 <entry>Load more packages from <replaceable>file</replaceable></entry>
568 <entry>static</entry>
572 <entry><option>-no-user-package-conf</option></entry>
573 <entry>Don't load the user's package config file.</entry>
574 <entry>static</entry>
583 <title>Language options</title>
585 <para><xref linkend="options-language"/></para>
588 <tgroup cols="4" align="left" colsep="1" rowsep="1">
592 <entry>Description</entry>
593 <entry>Static/Dynamic</entry>
594 <entry>Reverse</entry>
599 <entry><option>-fglasgow-exts</option></entry>
600 <entry>Enable most language extensions</entry>
601 <entry>dynamic</entry>
602 <entry><option>-fno-glasgow-exts</option></entry>
605 <entry><option>-X=AllowOverlappingInstances</option></entry>
606 <entry>Enable <link linkend="instance-overlap">overlapping instances</link></entry>
607 <entry>dynamic</entry>
608 <entry><option>-X=NoAllowOverlappingInstances</option></entry>
611 <entry><option>-X=AllowIncoherentInstances</option></entry>
612 <entry>Enable <link linkend="instance-overlap">incoherent instances</link>.
613 Implies <option>-X=AllowOverlappingInstances</option> </entry>
614 <entry>dynamic</entry>
615 <entry><option>-X=NoAllowIncoherentInstances</option></entry>
618 <entry><option>-X=AllowUndecidableInstances</option></entry>
619 <entry>Enable <link linkend="undecidable-instances">undecidable instances</link></entry>
620 <entry>dynamic</entry>
621 <entry><option>-X=NoAllowUndecidableInstances</option></entry>
624 <entry><option>-fcontext-stack=N</option><replaceable>n</replaceable></entry>
625 <entry>set the <link linkend="undecidable-instances">limit for context reduction</link></entry>
626 <entry>dynamic</entry>
627 <entry><option>20</option></entry>
630 <entry><option>-X=Arrows</option></entry>
631 <entry>Enable <link linkend="arrow-notation">arrow
632 notation</link> extension</entry>
633 <entry>dynamic</entry>
634 <entry><option>-X=NoArrows</option></entry>
637 <entry><option>-fdisambiguate-record-fields</option></entry>
638 <entry>Enable <link linkend="disambiguate-fields">record
639 field disambiguation</link></entry>
640 <entry>dynamic</entry>
641 <entry><option>-fno-disambiguate-record-fields</option></entry>
644 <entry><option>-X=FFI</option> or <option>-X=ForeignFunctionInterface</option></entry>
645 <entry>Enable <link linkend="ffi">foreign function interface</link> (implied by
646 <option>-fglasgow-exts</option>)</entry>
647 <entry>dynamic</entry>
648 <entry><option>-X=NoFFI</option></entry>
651 <entry><option>-X=Generics</option></entry>
652 <entry>Enable <link linkend="generic-classes">generic classes</link></entry>
653 <entry>dynamic</entry>
654 <entry><option>-X=NoGenerics</option></entry>
657 <entry><option>-X=ImplicitParams</option></entry>
658 <entry>Enable <link linkend="implicit-parameters">Implicit Parameters</link>.
659 Implied by <option>-fglasgow-exts</option>.</entry>
660 <entry>dynamic</entry>
661 <entry><option>-X=NoImplicitParams</option></entry>
664 <entry><option>-firrefutable-tuples</option></entry>
665 <entry>Make tuple pattern matching irrefutable</entry>
666 <entry>dynamic</entry>
667 <entry><option>-fno-irrefutable-tuples</option></entry>
670 <entry><option>-X=NoImplicitPrelude</option></entry>
671 <entry>Don't implicitly <literal>import Prelude</literal></entry>
672 <entry>dynamic</entry>
673 <entry><option>-X=ImplicitPrelude</option></entry>
676 <entry><option>-X=NoMonomorphismRestriction</option></entry>
677 <entry>Disable the <link linkend="monomorphism">monomorphism restriction</link></entry>
678 <entry>dynamic</entry>
679 <entry><option>-X=MonomorphismRrestriction</option></entry>
682 <entry><option>-X=NoMonoPatBinds</option></entry>
683 <entry>Make <link linkend="monomorphism">pattern bindings polymorphic</link></entry>
684 <entry>dynamic</entry>
685 <entry><option>-X=MonoPatBinds</option></entry>
688 <entry><option>-X=RelaxedPolyRed</option></entry>
689 <entry>Relaxed checking for <link linkend="typing-binds">mutually-recursive polymorphic functions</link></entry>
690 <entry>dynamic</entry>
691 <entry><option>-X=NoRelaxedPolyRec</option></entry>
694 <entry><option>-X=ExtendedDefaultRules</option></entry>
695 <entry>Use GHCi's <link linkend="extended-default-rules">extended default rules</link> in a normal module</entry>
696 <entry>dynamic</entry>
697 <entry><option>-X=NoExtendedDefaultRules</option></entry>
700 <entry><option>-X=OverloadedStrings</option></entry>
701 <entry>Enable <link linkend="overloaded-strings">overloaded string literals</link>.
703 <entry>dynamic</entry>
704 <entry><option>-X=NoOverloadedStrings</option></entry>
707 <entry><option>-X=GADTs</option></entry>
708 <entry>Enable <link linkend="gadts">generalised algebraic data types</link>.
710 <entry>dynamic</entry>
711 <entry><option>-X=NoGADTs</option></entry>
714 <entry><option>-X=TypeFamilies</option></entry>
715 <entry>Enable <link linkend="type-families">type families</link>.</entry>
716 <entry>dynamic</entry>
717 <entry><option>-X=NoTypeFamilies</option></entry>
720 <entry><option>-X=ScopedTypeVariables</option></entry>
721 <entry>Enable <link linkend="scoped-type-variables">lexically-scoped type variables</link>.
722 Implied by <option>-fglasgow-exts</option>.</entry>
723 <entry>dynamic</entry>
724 <entry><option>-X=NoScopedTypeVariables</option></entry>
727 <entry><option>-X=TH</option> or <option>-X=TemplateHaskell</option></entry>
728 <entry>Enable <link linkend="template-haskell">Template Haskell</link>.
729 No longer implied by <option>-fglasgow-exts</option>.</entry>
730 <entry>dynamic</entry>
731 <entry><option>-X=NoTH</option></entry>
734 <entry><option>-X=BangPtterns</option></entry>
735 <entry>Enable <link linkend="bang-patterns">bang patterns</link>.</entry>
736 <entry>dynamic</entry>
737 <entry><option>-X=NoBangPatterns</option></entry>
745 <title>Warnings</title>
747 <para><xref linkend="options-sanity"/></para>
750 <tgroup cols="4" align="left" colsep="1" rowsep="1">
754 <entry>Description</entry>
755 <entry>Static/Dynamic</entry>
756 <entry>Reverse</entry>
761 <entry><option>-W</option></entry>
762 <entry>enable normal warnings</entry>
763 <entry>dynamic</entry>
764 <entry><option>-w</option></entry>
767 <entry><option>-w</option></entry>
768 <entry>disable all warnings</entry>
769 <entry>dynamic</entry>
773 <entry><option>-Wall</option></entry>
774 <entry>enable almost all warnings (details in <xref linkend="options-sanity"/>)</entry>
775 <entry>dynamic</entry>
776 <entry><option>-w</option></entry>
779 <entry><option>-Werror</option></entry>
780 <entry>make warnings fatal</entry>
781 <entry>dynamic</entry>
786 <entry><option>-fwarn-deprecations</option></entry>
787 <entry>warn about uses of functions & types that are deprecated</entry>
788 <entry>dynamic</entry>
789 <entry><option>-fno-warn-deprecations</option></entry>
793 <entry><option>-fwarn-duplicate-exports</option></entry>
794 <entry>warn when an entity is exported multiple times</entry>
795 <entry>dynamic</entry>
796 <entry><option>-fno-warn-duplicate-exports</option></entry>
800 <entry><option>-fwarn-hi-shadowing</option></entry>
801 <entry>warn when a <literal>.hi</literal> file in the
802 current directory shadows a library</entry>
803 <entry>dynamic</entry>
804 <entry><option>-fno-warn-hi-shadowing</option></entry>
808 <entry><option>-fwarn-implicit-prelude</option></entry>
809 <entry>warn when the Prelude is implicitly imported</entry>
810 <entry>dynamic</entry>
811 <entry><option>-fno-warn-implicit-prelude</option></entry>
815 <entry><option>-fwarn-incomplete-patterns</option></entry>
816 <entry>warn when a pattern match could fail</entry>
817 <entry>dynamic</entry>
818 <entry><option>-fno-warn-incomplete-patterns</option></entry>
822 <entry><option>-fwarn-incomplete-record-updates</option></entry>
823 <entry>warn when a record update could fail</entry>
824 <entry>dynamic</entry>
825 <entry><option>-fno-warn-incomplete-record-updates</option></entry>
829 <entry><option>-fwarn-missing-fields</option></entry>
830 <entry>warn when fields of a record are uninitialised</entry>
831 <entry>dynamic</entry>
832 <entry><option>-fno-warn-missing-fields</option></entry>
836 <entry><option>-fwarn-missing-methods</option></entry>
837 <entry>warn when class methods are undefined</entry>
838 <entry>dynamic</entry>
839 <entry><option>-fno-warn-missing-methods</option></entry>
843 <entry><option>-fwarn-missing-signatures</option></entry>
844 <entry>warn about top-level functions without signatures</entry>
845 <entry>dynamic</entry>
846 <entry><option>-fno-warn-missing-signatures</option></entry>
850 <entry><option>-fwarn-name-shadowing</option></entry>
851 <entry>warn when names are shadowed</entry>
852 <entry>dynamic</entry>
853 <entry><option>-fno-warn-name-shadowing</option></entry>
857 <entry><option>-fwarn-orphans</option></entry>
858 <entry>warn when the module contains "orphan" instance declarations
859 or rewrite rules</entry>
860 <entry>dynamic</entry>
861 <entry><option>-fno-warn-orphans</option></entry>
865 <entry><option>-fwarn-overlapping-patterns</option></entry>
866 <entry>warn about overlapping patterns</entry>
867 <entry>dynamic</entry>
868 <entry><option>-fno-warn-overlapping-patterns</option></entry>
872 <entry><option>-fwarn-simple-patterns</option></entry>
873 <entry>warn about lambda-patterns that can fail</entry>
874 <entry>dynamic</entry>
875 <entry><option>-fno-warn-simple-patterns</option></entry>
879 <entry><option>-fwarn-tabs</option></entry>
880 <entry>warn if there are tabs in the source file</entry>
881 <entry>dynamic</entry>
882 <entry><option>-fno-warn-tabs</option></entry>
886 <entry><option>-fwarn-type-defaults</option></entry>
887 <entry>warn when defaulting happens</entry>
888 <entry>dynamic</entry>
889 <entry><option>-fno-warn-type-defaults</option></entry>
893 <entry><option>-fwarn-monomorphism-restriction</option></entry>
894 <entry>warn when the Monomorphism Restriction is applied</entry>
895 <entry>dynamic</entry>
896 <entry><option>-fno-warn-monomorphism-restriction</option></entry>
900 <entry><option>-fwarn-unused-binds</option></entry>
901 <entry>warn about bindings that are unused</entry>
902 <entry>dynamic</entry>
903 <entry><option>-fno-warn-unused-binds</option></entry>
907 <entry><option>-fwarn-unused-imports</option></entry>
908 <entry>warn about unnecessary imports</entry>
909 <entry>dynamic</entry>
910 <entry><option>-fno-warn-unused-imports</option></entry>
914 <entry><option>-fwarn-unused-matches</option></entry>
915 <entry>warn about variables in patterns that aren't used</entry>
916 <entry>dynamic</entry>
917 <entry><option>-fno-warn-unused-matches</option></entry>
926 <title>Optimisation levels</title>
928 <para><xref linkend="options-optimise"/></para>
931 <tgroup cols="4" align="left" colsep="1" rowsep="1">
935 <entry>Description</entry>
936 <entry>Static/Dynamic</entry>
937 <entry>Reverse</entry>
942 <entry><option>-O</option></entry>
943 <entry>Enable default optimisation (level 1)</entry>
944 <entry>dynamic</entry>
945 <entry><option>-O0</option></entry>
948 <entry><option>-O</option><replaceable>n</replaceable></entry>
949 <entry>Set optimisation level <replaceable>n</replaceable></entry>
950 <entry>dynamic</entry>
951 <entry><option>-O0</option></entry>
959 <title>Individual optimisations</title>
961 <para><xref linkend="options-f"/></para>
964 <tgroup cols="4" align="left" colsep="1" rowsep="1">
968 <entry>Description</entry>
969 <entry>Static/Dynamic</entry>
970 <entry>Reverse</entry>
975 <entry><option>-fcase-merge</option></entry>
976 <entry>Enable case-merging. Implied by <option>-O</option>.</entry>
977 <entry>dynamic</entry>
978 <entry><option>-fno-case-merge</option></entry>
982 <entry><option>-fdicts-strict</option></entry>
983 <entry>Make dictionaries strict</entry>
984 <entry>static</entry>
985 <entry><option>-fno-dicts-strict</option></entry>
989 <entry><option>-fdo-eta-reduction</option></entry>
990 <entry>Enable eta-reduction. Implied by <option>-O</option>.</entry>
991 <entry>dynamic</entry>
992 <entry><option>-fno-do-eta-reduction</option></entry>
996 <entry><option>-fdo-lambda-eta-expansion</option></entry>
997 <entry>Enable lambda eta-reduction</entry>
998 <entry>dynamic</entry>
999 <entry><option>-fno-do-lambda-eta-expansion</option></entry>
1003 <entry><option>-fexcess-precision</option></entry>
1004 <entry>Enable excess intermediate precision</entry>
1005 <entry>dynamic</entry>
1006 <entry><option>-fno-excess-precision</option></entry>
1010 <entry><option>-fignore-asserts</option></entry>
1011 <entry>Ignore assertions in the source</entry>
1012 <entry>dynamic</entry>
1013 <entry><option>-fno-ignore-asserts</option></entry>
1017 <entry><option>-fignore-interface-pragmas</option></entry>
1018 <entry>Ignore pragmas in interface files</entry>
1019 <entry>dynamic</entry>
1020 <entry><option>-fno-ignore-interface-pragmas</option></entry>
1024 <entry><option>-fomit-interface-pragmas</option></entry>
1025 <entry>Don't generate interface pragmas</entry>
1026 <entry>dynamic</entry>
1027 <entry><option>-fno-omit-interface-pragmas</option></entry>
1031 <entry><option>-fmax-worker-args</option></entry>
1032 <entry>If a worker has that many arguments, none will be
1033 unpacked anymore (default: 10)</entry>
1034 <entry>static</entry>
1039 <entry><option>-fmax-simplifier-iterations</option></entry>
1040 <entry>Set the max iterations for the simplifier</entry>
1041 <entry>dynamic</entry>
1046 <entry><option>-fno-state-hack</option></entry>
1047 <entry>Turn off the "state hack" whereby any lambda with a real-world state token
1048 as argument is considered to be single-entry. Hence OK to inline things inside it.</entry>
1049 <entry>static</entry>
1054 <entry><option>-fcse</option></entry>
1055 <entry>Turn on common sub-expression elimination. Implied by <option>-O</option>.</entry>
1056 <entry>dynamic</entry>
1057 <entry>-fno-cse</entry>
1061 <entry><option>-ffull-laziness</option></entry>
1062 <entry>Turn on full laziness (floating bindings outwards). Implied by <option>-O</option>.</entry>
1063 <entry>dynamic</entry>
1064 <entry>-fno-full-laziness</entry>
1068 <entry><option>-frewrite-rules</option></entry>
1069 <entry>Switch on all rewrite rules (including rules
1070 generated by automatic specialisation of overloaded functions).
1071 Implied by <option>-O</option>. </entry>
1072 <entry>dynamic</entry>
1073 <entry><option>-fno-rewrite-rules</option></entry>
1077 <entry><option>-fstrictness</option></entry>
1078 <entry>Turn on strictness analysis. Implied by <option>-O</option>.</entry>
1079 <entry>dynamic</entry>
1080 <entry>-fno-strictness</entry>
1084 <entry><option>-fspec-constr</option></entry>
1085 <entry>Turn on the SpecConstr transformation. Implied by <option>-O2</option>.</entry>
1086 <entry>dynamic</entry>
1087 <entry>-fno-spec-constr</entry>
1091 <entry><option>-fliberate-case</option></entry>
1092 <entry>Turn on the liberate-case transformation. Implied by <option>-O2</option>.</entry>
1093 <entry>dynamic</entry>
1094 <entry>-fno-liberate-case</entry>
1098 <entry><option>-fspec-threshold</option>=<replaceable>n</replaceable></entry>
1099 <entry>Set the size threshold for function specialisation to <replaceable>n</replaceable>, for both
1100 the liberate-case and SpecConstr transformations (default: 200)</entry>
1101 <entry>static</entry>
1102 <entry><option>-</option></entry>
1106 <entry><option>-funbox-strict-fields</option></entry>
1107 <entry>Flatten strict constructor fields</entry>
1108 <entry>dynamic</entry>
1109 <entry><option>-fno-unbox-strict-fields</option></entry>
1113 <entry><option>-funfolding-creation-threshold</option></entry>
1114 <entry>Tweak unfolding settings</entry>
1115 <entry>static</entry>
1116 <entry><option>-fno-unfolding-creation-threshold</option></entry>
1120 <entry><option>-funfolding-fun-discount</option></entry>
1121 <entry>Tweak unfolding settings</entry>
1122 <entry>static</entry>
1123 <entry><option>-fno-unfolding-fun-discount</option></entry>
1127 <entry><option>-funfolding-keeness-factor</option></entry>
1128 <entry>Tweak unfolding settings</entry>
1129 <entry>static</entry>
1130 <entry><option>-fno-unfolding-keeness-factor</option></entry>
1134 <entry><option>-funfolding-update-in-place</option></entry>
1135 <entry>Tweak unfolding settings</entry>
1136 <entry>static</entry>
1137 <entry><option>-fno-unfolding-update-in-place</option></entry>
1141 <entry><option>-funfolding-use-threshold</option></entry>
1142 <entry>Tweak unfolding settings</entry>
1143 <entry>static</entry>
1144 <entry><option>-fno-unfolding-use-threshold</option></entry>
1148 <entry><option>-fno-pre-inlining</option></entry>
1149 <entry>Turn off pre-inlining</entry>
1150 <entry>static</entry>
1159 <title>Profiling options</title>
1161 <para><xref linkend="profiling"/></para>
1164 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1168 <entry>Description</entry>
1169 <entry>Static/Dynamic</entry>
1170 <entry>Reverse</entry>
1175 <entry><option>-auto</option></entry>
1176 <entry>Auto-add <literal>_scc_</literal>s to all
1177 exported functions</entry>
1178 <entry>static</entry>
1179 <entry><option>-no-auto</option></entry>
1182 <entry><option>-auto-all</option></entry>
1183 <entry>Auto-add <literal>_scc_</literal>s to all
1184 top-level functions</entry>
1185 <entry>static</entry>
1186 <entry><option>-no-auto-all</option></entry>
1189 <entry><option>-caf-all</option></entry>
1190 <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
1191 <entry>static</entry>
1192 <entry><option>-no-caf-all</option></entry>
1195 <entry><option>-prof</option></entry>
1196 <entry>Turn on profiling</entry>
1197 <entry>static</entry>
1201 <entry><option>-ticky</option></entry>
1202 <entry>Turn on ticky-ticky profiling</entry>
1203 <entry>static</entry>
1212 <title>Program coverage options</title>
1214 <para><xref linkend="hpc"/></para>
1217 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1221 <entry>Description</entry>
1222 <entry>Static/Dynamic</entry>
1223 <entry>Reverse</entry>
1228 <entry><option>-fhpc</option></entry>
1229 <entry>Turn on Haskell program coverage instrumentation</entry>
1230 <entry>static</entry>
1231 <entry><option>-</option></entry>
1234 <entry><option>-hpcdir dir</option></entry>
1235 <entry>Directory to deposit .mix files during compilation</entry>
1236 <entry>dynamic</entry>
1237 <entry><option>-</option></entry>
1245 <title>Haskell pre-processor options</title>
1247 <para><xref linkend="pre-processor"/></para>
1250 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1254 <entry>Description</entry>
1255 <entry>Static/Dynamic</entry>
1256 <entry>Reverse</entry>
1261 <entry><option>-F</option></entry>
1263 Enable the use of a pre-processor
1264 (set with <option>-pgmF</option>)
1266 <entry>dynamic</entry>
1275 <title>C pre-processor options</title>
1277 <para><xref linkend="c-pre-processor"/></para>
1280 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1284 <entry>Description</entry>
1285 <entry>Static/Dynamic</entry>
1286 <entry>Reverse</entry>
1291 <entry><option>-cpp</option></entry>
1292 <entry>Run the C pre-processor on Haskell source files</entry>
1293 <entry>dynamic</entry>
1297 <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1298 <entry>Define a symbol in the C pre-processor</entry>
1299 <entry>dynamic</entry>
1300 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1303 <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1304 <entry>Undefine a symbol in the C pre-processor</entry>
1305 <entry>dynamic</entry>
1309 <entry><option>-I</option><replaceable>dir</replaceable></entry>
1310 <entry>Add <replaceable>dir</replaceable> to the
1311 directory search list for <literal>#include</literal> files</entry>
1312 <entry>dynamic</entry>
1321 <title>C compiler options</title>
1323 <para><xref linkend="options-C-compiler"/></para>
1325 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1329 <entry>Description</entry>
1330 <entry>Static/Dynamic</entry>
1331 <entry>Reverse</entry>
1336 <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1337 <entry>Include <replaceable>file</replaceable> when
1338 compiling the <filename>.hc</filename> file</entry>
1339 <entry>dynamic</entry>
1348 <title>Code generation options</title>
1350 <para><xref linkend="options-codegen"/></para>
1353 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1357 <entry>Description</entry>
1358 <entry>Static/Dynamic</entry>
1359 <entry>Reverse</entry>
1364 <entry><option>-fasm</option></entry>
1365 <entry>Use the native code generator</entry>
1366 <entry>dynamic</entry>
1367 <entry>-fvia-C</entry>
1370 <entry><option>-fvia-C</option></entry>
1371 <entry>Compile via C</entry>
1372 <entry>dynamic</entry>
1373 <entry>-fasm</entry>
1376 <entry><option>-fno-code</option></entry>
1377 <entry>Omit code generation</entry>
1378 <entry>dynamic</entry>
1382 <entry><option>-fbyte-code</option></entry>
1383 <entry>Generate byte-code</entry>
1384 <entry>dynamic</entry>
1388 <entry><option>-fobject-code</option></entry>
1389 <entry>Generate object code</entry>
1390 <entry>dynamic</entry>
1399 <title>Linking options</title>
1401 <para><xref linkend="options-linker"/></para>
1404 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1408 <entry>Description</entry>
1409 <entry>Static/Dynamic</entry>
1410 <entry>Reverse</entry>
1415 <entry><option>-fPIC</option></entry>
1416 <entry>Generate position-independent code (where available)</entry>
1417 <entry>static</entry>
1421 <entry><option>-dynamic</option></entry>
1422 <entry>Use dynamic Haskell libraries (if available)</entry>
1423 <entry>static</entry>
1427 <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1428 <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1429 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1430 <entry>dynamic</entry>
1434 <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1435 <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1436 directories searched for frameworks.
1437 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1438 <entry>dynamic</entry>
1442 <entry><option>-l</option><replaceable>lib</replaceable></entry>
1443 <entry>Link in library <replaceable>lib</replaceable></entry>
1444 <entry>dynamic</entry>
1448 <entry><option>-L</option><replaceable>dir</replaceable></entry>
1449 <entry>Add <replaceable>dir</replaceable> to the list of
1450 directories searched for libraries</entry>
1451 <entry>dynamic</entry>
1455 <entry><option>-main-is</option></entry>
1456 <entry>Set main module and function</entry>
1457 <entry>dynamic</entry>
1461 <entry><option>--mk-dll</option></entry>
1462 <entry>DLL-creation mode (Windows only)</entry>
1463 <entry>dynamic</entry>
1467 <entry><option>-no-hs-main</option></entry>
1468 <entry>Don't assume this program contains <literal>main</literal></entry>
1469 <entry>dynamic</entry>
1473 <entry><option>-no-link</option></entry>
1474 <entry>Omit linking</entry>
1475 <entry>dynamic</entry>
1479 <entry><option>-split-objs</option></entry>
1480 <entry>Split objects (for libraries)</entry>
1481 <entry>dynamic</entry>
1485 <entry><option>-static</option></entry>
1486 <entry>Use static Haskell libraries</entry>
1487 <entry>static</entry>
1491 <entry><option>-threaded</option></entry>
1492 <entry>Use the threaded runtime</entry>
1493 <entry>static</entry>
1497 <entry><option>-debug</option></entry>
1498 <entry>Use the debugging runtime</entry>
1499 <entry>static</entry>
1508 <title>Replacing phases</title>
1510 <para><xref linkend="replacing-phases"/></para>
1513 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1517 <entry>Description</entry>
1518 <entry>Static/Dynamic</entry>
1519 <entry>Reverse</entry>
1524 <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1525 <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1526 <entry>dynamic</entry>
1530 <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1531 <entry>Use <replaceable>cmd</replaceable> as the C
1532 pre-processor (with <option>-cpp</option> only)</entry>
1533 <entry>dynamic</entry>
1537 <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1538 <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1539 <entry>dynamic</entry>
1543 <entry><option>-pgmm</option> <replaceable>cmd</replaceable></entry>
1544 <entry>Use <replaceable>cmd</replaceable> as the mangler</entry>
1545 <entry>dynamic</entry>
1549 <entry><option>-pgms</option> <replaceable>cmd</replaceable></entry>
1550 <entry>Use <replaceable>cmd</replaceable> as the splitter</entry>
1551 <entry>dynamic</entry>
1555 <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1556 <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1557 <entry>dynamic</entry>
1561 <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1562 <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1563 <entry>dynamic</entry>
1567 <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1568 <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1569 <entry>dynamic</entry>
1573 <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1574 <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1575 (with <option>-F</option> only)</entry>
1576 <entry>dynamic</entry>
1582 <indexterm><primary><option>-pgmL</option></primary></indexterm>
1583 <indexterm><primary><option>-pgmP</option></primary></indexterm>
1584 <indexterm><primary><option>-pgmc</option></primary></indexterm>
1585 <indexterm><primary><option>-pgma</option></primary></indexterm>
1586 <indexterm><primary><option>-pgml</option></primary></indexterm>
1587 <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1588 <indexterm><primary><option>-pgmF</option></primary></indexterm>
1593 <title>Forcing options to particular phases</title>
1595 <para><xref linkend="forcing-options-through"/></para>
1598 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1602 <entry>Description</entry>
1603 <entry>Static/Dynamic</entry>
1604 <entry>Reverse</entry>
1609 <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1610 <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1611 <entry>dynamic</entry>
1615 <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1616 <entry>pass <replaceable>option</replaceable> to cpp (with
1617 <option>-cpp</option> only)</entry>
1618 <entry>dynamic</entry>
1622 <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1623 <entry>pass <replaceable>option</replaceable> to the
1624 custom pre-processor</entry>
1625 <entry>dynamic</entry>
1629 <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1630 <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1631 <entry>dynamic</entry>
1635 <entry><option>-optm</option> <replaceable>option</replaceable></entry>
1636 <entry>pass <replaceable>option</replaceable> to the mangler</entry>
1637 <entry>dynamic</entry>
1641 <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1642 <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1643 <entry>dynamic</entry>
1647 <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1648 <entry>pass <replaceable>option</replaceable> to the linker</entry>
1649 <entry>dynamic</entry>
1653 <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1654 <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1655 <entry>dynamic</entry>
1659 <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1660 <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1661 <entry>dynamic</entry>
1670 <title>Platform-specific options</title>
1672 <para><xref linkend="options-platform"/></para>
1675 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1679 <entry>Description</entry>
1680 <entry>Static/Dynamic</entry>
1681 <entry>Reverse</entry>
1686 <entry><option>-monly-[432]-regs</option></entry>
1687 <entry>(x86 only) give some registers back to the C compiler</entry>
1688 <entry>dynamic</entry>
1698 <title>External core file options</title>
1700 <para><xref linkend="ext-core"/></para>
1703 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1707 <entry>Description</entry>
1708 <entry>Static/Dynamic</entry>
1709 <entry>Reverse</entry>
1714 <entry><option>-fext-core</option></entry>
1715 <entry>Generate <filename>.hcr</filename> external Core files</entry>
1716 <entry>static</entry>
1726 <title>Compiler debugging options</title>
1728 <para><xref linkend="options-debugging"/></para>
1731 <tgroup cols="4" align="left" colsep="1" rowsep="1">
1735 <entry>Description</entry>
1736 <entry>Static/Dynamic</entry>
1737 <entry>Reverse</entry>
1742 <entry><option>-dcore-lint</option></entry>
1743 <entry>Turn on internal sanity checking</entry>
1744 <entry>dynamic</entry>
1748 <entry><option>-ddump-asm</option></entry>
1749 <entry>Dump assembly</entry>
1750 <entry>dynamic</entry>
1754 <entry><option>-ddump-bcos</option></entry>
1755 <entry>Dump interpreter byte code</entry>
1756 <entry>dynamic</entry>
1760 <entry><option>-ddump-cmm</option></entry>
1761 <entry>Dump C-- output</entry>
1762 <entry>dynamic</entry>
1766 <entry><option>-ddump-cpranal</option></entry>
1767 <entry>Dump output from CPR analysis</entry>
1768 <entry>dynamic</entry>
1772 <entry><option>-ddump-cse</option></entry>
1773 <entry>Dump CSE output</entry>
1774 <entry>dynamic</entry>
1778 <entry><option>-ddump-deriv</option></entry>
1779 <entry>Dump deriving output</entry>
1780 <entry>dynamic</entry>
1784 <entry><option>-ddump-ds</option></entry>
1785 <entry>Dump desugarer output</entry>
1786 <entry>dynamic</entry>
1790 <entry><option>-ddump-flatC</option></entry>
1791 <entry>Dump “flat” C</entry>
1792 <entry>dynamic</entry>
1796 <entry><option>-ddump-foreign</option></entry>
1797 <entry>Dump <literal>foreign export</literal> stubs</entry>
1798 <entry>dynamic</entry>
1802 <entry><option>-ddump-hpc</option></entry>
1803 <entry>Dump after intrumentation for program coverage</entry>
1804 <entry>dynamic</entry>
1808 <entry><option>-ddump-inlinings</option></entry>
1809 <entry>Dump inlining info</entry>
1810 <entry>dynamic</entry>
1814 <entry><option>-ddump-occur-anal</option></entry>
1815 <entry>Dump occurrence analysis output</entry>
1816 <entry>dynamic</entry>
1820 <entry><option>-ddump-opt-cmm</option></entry>
1821 <entry>Dump the results of C-- to C-- optimising passes</entry>
1822 <entry>dynamic</entry>
1826 <entry><option>-ddump-parsed</option></entry>
1827 <entry>Dump parse tree</entry>
1828 <entry>dynamic</entry>
1832 <entry><option>-ddump-prep</option></entry>
1833 <entry>Dump prepared core</entry>
1834 <entry>dynamic</entry>
1838 <entry><option>-ddump-rn</option></entry>
1839 <entry>Dump renamer output</entry>
1840 <entry>dynamic</entry>
1844 <entry><option>-ddump-rules</option></entry>
1845 <entry>Dump rules</entry>
1846 <entry>dynamic</entry>
1850 <entry><option>-ddump-simpl</option></entry>
1851 <entry>Dump final simplifier output</entry>
1852 <entry>dynamic</entry>
1856 <entry><option>-ddump-simpl-iterations</option></entry>
1857 <entry>Dump output from each simplifier iteration</entry>
1858 <entry>dynamic</entry>
1862 <entry><option>-ddump-spec</option></entry>
1863 <entry>Dump specialiser output</entry>
1864 <entry>dynamic</entry>
1868 <entry><option>-ddump-splices</option></entry>
1869 <entry>Dump TH splided expressions, and what they evaluate to</entry>
1870 <entry>dynamic</entry>
1874 <entry><option>-ddump-stg</option></entry>
1875 <entry>Dump final STG</entry>
1876 <entry>dynamic</entry>
1880 <entry><option>-ddump-stranal</option></entry>
1881 <entry>Dump strictness analyser output</entry>
1882 <entry>dynamic</entry>
1886 <entry><option>-ddump-tc</option></entry>
1887 <entry>Dump typechecker output</entry>
1888 <entry>dynamic</entry>
1892 <entry><option>-ddump-types</option></entry>
1893 <entry>Dump type signatures</entry>
1894 <entry>dynamic</entry>
1898 <entry><option>-ddump-worker-wrapper</option></entry>
1899 <entry>Dump worker-wrapper output</entry>
1900 <entry>dynamic</entry>
1904 <entry><option>-ddump-if-trace</option></entry>
1905 <entry>Trace interface files</entry>
1906 <entry>dynamic</entry>
1910 <entry><option>-ddump-tc-trace</option></entry>
1911 <entry>Trace typechecker</entry>
1912 <entry>dynamic</entry>
1916 <entry><option>-ddump-rn-trace</option></entry>
1917 <entry>Trace renamer</entry>
1918 <entry>dynamic</entry>
1922 <entry><option>-ddump-rn-stats</option></entry>
1923 <entry>Renamer stats</entry>
1924 <entry>dynamic</entry>
1928 <entry><option>-ddump-simpl-stats</option></entry>
1929 <entry>Dump simplifier stats</entry>
1930 <entry>dynamic</entry>
1934 <entry><option>-dppr-debug</option></entry>
1935 <entry>Turn on debug printing (more verbose)</entry>
1936 <entry>static</entry>
1940 <entry><option>-dppr-noprags</option></entry>
1941 <entry>Don't output pragma info in dumps</entry>
1942 <entry>static</entry>
1946 <entry><option>-dppr-user-length</option></entry>
1947 <entry>Set the depth for printing expressions in error msgs</entry>
1948 <entry>static</entry>
1952 <entry><option>-dsource-stats</option></entry>
1953 <entry>Dump haskell source stats</entry>
1954 <entry>dynamic</entry>
1958 <entry><option>-dcmm-lint</option></entry>
1959 <entry>C-- pass sanity checking</entry>
1960 <entry>dynamic</entry>
1964 <entry><option>-dstg-lint</option></entry>
1965 <entry>STG pass sanity checking</entry>
1966 <entry>dynamic</entry>
1970 <entry><option>-dstg-stats</option></entry>
1971 <entry>Dump STG stats</entry>
1972 <entry>dynamic</entry>
1976 <entry><option>-dverbose-core2core</option></entry>
1977 <entry>Show output from each core-to-core pass</entry>
1978 <entry>dynamic</entry>
1982 <entry><option>-dverbose-stg2stg</option></entry>
1983 <entry>Show output from each STG-to-STG pass</entry>
1984 <entry>dynamic</entry>
1988 <entry><option>-dshow-passes</option></entry>
1989 <entry>Print out each pass name as it happens</entry>
1990 <entry>dynamic</entry>
1994 <entry><option>-dfaststring-stats</option></entry>
1995 <entry>Show statistics for fast string usage when finished</entry>
1996 <entry>dynamic</entry>
2000 <entry><option>-unreg</option></entry>
2001 <entry>Enable unregisterised compilation</entry>
2002 <entry>static</entry>
2011 <title>Misc compiler options</title>
2014 <tgroup cols="4" align="left" colsep="1" rowsep="1">
2018 <entry>Description</entry>
2019 <entry>Static/Dynamic</entry>
2020 <entry>Reverse</entry>
2025 <entry><option>-fno-hi-version-check</option></entry>
2026 <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
2027 <entry>static</entry>
2031 <entry><option>-dno-black-holing</option></entry>
2032 <entry>Turn off black holing (probably doesn't work)</entry>
2033 <entry>static</entry>
2037 <entry><option>-fno-method-sharing</option></entry>
2038 <entry>Don't share specialisations of overloaded functions</entry>
2039 <entry>static</entry>
2043 <entry><option>-fhistory-size</option></entry>
2044 <entry>Set simplification history size</entry>
2045 <entry>static</entry>
2049 <entry><option>-funregisterised</option></entry>
2050 <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
2051 <entry>static</entry>
2055 <entry><option>-fno-asm-mangling</option></entry>
2056 <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
2057 <entry>dynamic</entry>
2071 , ( "H" , HasArg (setHeapSize . fromIntegral . decodeSize) )
2077 ;;; Local Variables: ***
2079 ;;; sgml-parent-document: ("users_guide.xml" "book" "chapter") ***