769b64126bc12b71ce7cbb7b25084342a5790684
[ghc-hetmet.git] / ghc / docs / users_guide / flags.sgml
1   <sect1 id="flag-reference">
2     <title>Flag reference</title>
3
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
7     (if available).</para>
8
9     <sect2>
10       <title>Help and verbosity options (<xref linkend="options-help">)</title>
11
12       <informaltable>
13         <tgroup cols=3 align=left colsep=1 rowsep=1>
14           <thead>
15             <row>
16               <entry>Flag</entry>
17               <entry>Description</entry>
18               <entry>Static/Dynamic</entry>
19               <entry>Reverse</entry>
20             </row>
21           </thead>
22           <tbody>
23             <row>
24               <entry><option>-?</option></entry>
25               <entry>help</entry>
26               <entry>static</entry>
27               <entry>-</entry>
28             </row>
29             <row>
30               <entry><option>-help</option></entry>
31               <entry>help</entry>
32               <entry>static</entry>
33               <entry>-</entry>
34             </row>
35             <row>
36               <entry><option>-v</option></entry>
37               <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
38               <entry>dynamic</entry>
39               <entry>-</entry>
40             </row>
41             <row>
42               <entry><option>-v</option><replaceable>n</replaceable></entry>
43               <entry>set verbosity level</entry>
44               <entry>dynamic</entry>
45               <entry>-</entry>
46             </row>
47             <row>
48               <entry><option>-V</option></entry>
49               <entry>display GHC version</entry>
50               <entry>static</entry>
51               <entry>-</entry>
52             </row>
53             <row>
54               <entry><option>&ndash;&ndash;version</option></entry>
55               <entry>display GHC version</entry>
56               <entry>static</entry>
57               <entry>-</entry>
58             </row>
59             <row>
60               <entry><option>&ndash;&ndash;numeric-version</option></entry>
61               <entry>display GHC version (numeric only)</entry>
62               <entry>static</entry>
63               <entry>-</entry>
64             </row>
65             <row>
66               <entry><option>&ndash;&ndash;print-libdir</option></entry>
67               <entry>display GHC library directory</entry>
68               <entry>static</entry>
69               <entry>-</entry>
70             </row>
71           </tbody>
72         </tgroup>
73       </informaltable>
74
75     </sect2>
76     <sect2>
77       <title>Which phases to run (<xref linkend="options-order">)</title>
78       
79       <informaltable>
80         <tgroup cols=3 align=left colsep=1 rowsep=1>
81           <thead>
82             <row>
83               <entry>Flag</entry>
84               <entry>Description</entry>
85               <entry>Static/Dynamic</entry>
86               <entry>Reverse</entry>
87             </row>
88           </thead>
89           <tbody>
90             <row>
91               <entry><option>-E</option></entry>
92               <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
93               <entry>static</entry>
94               <entry>-</entry>
95             </row>
96             <row>
97               <entry><option>-C</option></entry>
98               <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
99               <entry>static</entry>
100               <entry>-</entry>
101             </row>
102             <row>
103               <entry><option>-S</option></entry>
104               <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
105               <entry>static</entry>
106               <entry>-</entry>
107             </row>
108             <row>
109               <entry><option>-c</option></entry>
110               <entry>Stop after compiling to object code (<literal>.o</literal> file)</entry>
111               <entry>static</entry>
112               <entry>-</entry>
113             </row>
114           </tbody>
115         </tgroup>
116       </informaltable>
117     </sect2>
118
119     <sect2>
120       <title>Redirecting output (<xref linkend="options-output">)</title>
121       
122       <informaltable>
123         <tgroup cols=3 align=left colsep=1 rowsep=1>
124           <thead>
125             <row>
126               <entry>Flag</entry>
127               <entry>Description</entry>
128               <entry>Static/Dynamic</entry>
129               <entry>Reverse</entry>
130             </row>
131           </thead>
132           <tbody>
133             <row>
134               <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
135               <entry>set the suffix to use for intermediate C files</entry>
136               <entry>static</entry>
137               <entry>-</entry>
138             </row>
139             <row>
140               <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
141               <entry>set directory for interface files</entry>
142               <entry>static</entry>
143               <entry>-</entry>
144             </row>
145             <row>
146               <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
147               <entry>set the suffix to use for interface files</entry>
148               <entry>static</entry>
149               <entry>-</entry>
150             </row>
151             <row>
152               <entry><option>-o</option> <replaceable>filename</replaceable></entry>
153               <entry>set output filename</entry>
154               <entry>static</entry>
155               <entry>-</entry>
156             </row>
157             <row>
158               <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
159               <entry>set output directory</entry>
160               <entry>static</entry>
161               <entry>-</entry>
162             </row>
163             <row>
164               <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
165               <entry>set the filename in which to put the interface</entry>
166               <entry>static</entry>
167               <entry></entry>
168             </row>
169             <row>
170               <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
171               <entry>set the output file suffix</entry>
172               <entry>static</entry>
173               <entry>-</entry>
174             </row>
175           </tbody>
176         </tgroup>
177       </informaltable>
178     </sect2>
179
180     <sect2>
181       <title>Keeping intermediate files (<xref linkend="keeping-intermediates">)</title>
182       
183       <informaltable>
184         <tgroup cols=3 align=left colsep=1 rowsep=1>
185           <thead>
186             <row>
187               <entry>Flag</entry>
188               <entry>Description</entry>
189               <entry>Static/Dynamic</entry>
190               <entry>Reverse</entry>
191             </row>
192           </thead>
193           <tbody>
194             <row>
195               <entry><option>-keep-hc-file</option></entry>
196               <entry>retain intermediate <literal>.hc</literal> files</entry>
197               <entry>static</entry>
198               <entry>-</entry>
199             </row>
200             <row>
201               <entry><option>-keep-s-file</option></entry>
202               <entry>retain intermediate <literal>.s</literal> files</entry>
203               <entry>static</entry>
204               <entry>-</entry>
205             </row>
206             <row>
207               <entry><option>-keep-raw-s-file</option></entry>
208               <entry>retain intermediate <literal>.raw_s</literal> files</entry>
209               <entry>static</entry>
210               <entry>-</entry>
211             </row>
212             <row>
213               <entry><option>-keep-tmp-files</option></entry>
214               <entry>retain all intermediate temporary files</entry>
215               <entry>static</entry>
216               <entry>-</entry>
217             </row>
218           </tbody>
219         </tgroup>
220       </informaltable>
221     </sect2>
222
223     <sect2>
224       <title>Temporary files (<xref linkend="temp-files">)</title>
225       
226       <informaltable>
227         <tgroup cols=3 align=left colsep=1 rowsep=1>
228           <thead>
229             <row>
230               <entry>Flag</entry>
231               <entry>Description</entry>
232               <entry>Static/Dynamic</entry>
233               <entry>Reverse</entry>
234             </row>
235           </thead>
236           <tbody>
237             <row>
238               <entry><option>-tmpdir</option></entry>
239               <entry>set the directory for temporary files</entry>
240               <entry>static</entry>
241               <entry>-</entry>
242             </row>
243           </tbody>
244         </tgroup>
245       </informaltable>
246     </sect2>
247
248     <sect2>
249       <title>Finding imports (<xref linkend="search-path">)</title>
250
251       <informaltable>
252         <tgroup cols=3 align=left colsep=1 rowsep=1>
253           <thead>
254             <row>
255               <entry>Flag</entry>
256
257               <entry>Description</entry>
258               <entry>Static/Dynamic</entry>
259               <entry>Reverse</entry>
260             </row>
261           </thead>
262           <tbody>
263             <row>
264               <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
265               <entry>add <replaceable>dir</replaceable>,
266                   <replaceable>dir2</replaceable>, etc. to import path</entry>
267               <entry>static</entry>
268               <entry>-</entry>
269             </row>
270             <row>
271               <entry><option>-i</option></entry>
272               <entry>Empty the import directory list</entry>
273               <entry>static</entry>
274               <entry>-</entry>
275             </row>
276           </tbody>
277         </tgroup>
278       </informaltable>
279     </sect2>
280
281     <sect2>
282       <title>Interface file options (<xref linkend="hi-options">)</title>
283
284       <informaltable>
285         <tgroup cols=3 align=left colsep=1 rowsep=1>
286           <thead>
287             <row>
288               <entry>Flag</entry>
289
290               <entry>Description</entry>
291               <entry>Static/Dynamic</entry>
292               <entry>Reverse</entry>
293             </row>
294           </thead>
295           <tbody>
296             <row>
297               <entry><option>-ddump-hi</option></entry>
298               <entry>Dump the new interface to stdout</entry>
299               <entry>dynamic</entry>
300               <entry>-</entry>
301             </row>
302             <row>
303               <entry><option>-ddump-hi-diffs</option></entry>
304               <entry>Show the differences vs. the old interface</entry>
305               <entry>dynamic</entry>
306               <entry>-</entry>
307             </row>
308             <row>
309               <entry><option>-ddump-minimal-imports</option></entry>
310               <entry>Dump a minimal set of imports</entry>
311               <entry>dynamic</entry>
312               <entry>-</entry>
313             </row>
314             <row>
315               <entry><option>--show-iface</option> <replaceable>file</replaceable></entry>
316               <entry>Read the interface in
317               <replaceable>file</replaceable> and dump it as text to
318               <literal>stdout</literal>.</entry>
319               <entry>static</entry>
320               <entry>-</entry>
321             </row>
322           </tbody>
323         </tgroup>
324       </informaltable>
325     </sect2>
326     
327     <sect2>
328       <title>Recompilation checking (<xref linkend="recomp">)</title>
329
330       <informaltable>
331         <tgroup cols=3 align=left colsep=1 rowsep=1>
332           <thead>
333             <row>
334               <entry>Flag</entry>
335
336               <entry>Description</entry>
337               <entry>Static/Dynamic</entry>
338               <entry>Reverse</entry>
339             </row>
340           </thead>
341           <tbody>
342             <row>
343               <entry><option>-no-recomp</option></entry>
344               <entry>Turn off recompilation checking</entry>
345               <entry>static</entry>
346               <entry><option>-recomp</option></entry>
347             </row>
348           </tbody>
349         </tgroup>
350       </informaltable>
351     </sect2>
352
353     <sect2>
354       <title>Interactive-mode options (<xref linkend="ghci-dot-files">)</title>
355       
356       <informaltable>
357         <tgroup cols=3 align=left colsep=1 rowsep=1>
358           <thead>
359             <row>
360               <entry>Flag</entry>
361               <entry>Description</entry>
362               <entry>Static/Dynamic</entry>
363               <entry>Reverse</entry>
364             </row>
365           </thead>
366           <tbody>
367             <row>
368               <entry><option>-ignore-dot-ghci</option></entry>
369               <entry>Disable reading of <filename>.ghci</filename> files</entry>
370               <entry>static</entry>
371               <entry>-</entry>
372             </row>
373             <row>
374               <entry><option>-read-dot-ghci</option></entry>
375               <entry>Enable reading of <filename>.ghci</filename> files</entry>
376               <entry>static</entry>
377               <entry>-</entry>
378             </row>
379           </tbody>
380         </tgroup>
381       </informaltable>
382     </sect2>
383
384     <sect2>
385       <title>Packages (<xref linkend="packages">)</title>
386       <informaltable>
387         <tgroup cols=3 align=left colsep=1 rowsep=1>
388           <thead>
389             <row>
390               <entry>Flag</entry>
391               <entry>Description</entry>
392               <entry>Static/Dynamic</entry>
393               <entry>Reverse</entry>
394             </row>
395           </thead>
396           <tbody>
397             <row>
398               <entry><option>-package</option> <replaceable>name</replaceable></entry>
399               <entry>Use package <replaceable>name</replaceable></entry>
400               <entry>static</entry>
401               <entry>-</entry>
402             </row>
403             <row>
404               <entry><option>-package-conf</option> <replaceable>file</replaceable></entry>
405               <entry>Load more packages from <replaceable>file</replaceable></entry>
406               <entry>static</entry>
407               <entry>-</entry>
408             </row>
409             <row>
410               <entry><option>-package-name</option> <replaceable>name</replaceable></entry>
411               <entry>Compile code for package <replaceable>name</replaceable></entry>
412               <entry>static</entry>
413               <entry>-</entry>
414             </row>
415           </tbody>
416         </tgroup>
417       </informaltable>
418     </sect2>
419
420     <sect2>
421       <title>Language options (<xref linkend="options-language">)</title>
422
423       <informaltable>
424         <tgroup cols=3 align=left colsep=1 rowsep=1>
425           <thead>
426             <row>
427               <entry>Flag</entry>
428               <entry>Description</entry>
429               <entry>Static/Dynamic</entry>
430               <entry>Reverse</entry>
431             </row>
432           </thead>
433           <tbody>
434             <row>
435               <entry><option>-fallow-overlapping-instances</option></entry>
436               <entry>Enable overlapping instances</entry>
437               <entry>dynamic</entry>
438               <entry><option>-fno-allow-overlapping-instances</option></entry>
439             </row>
440             <row>
441               <entry><option>-farrows</option></entry>
442               <entry>Enable arrow notation extension</entry>
443               <entry>dynamic</entry>
444               <entry><option>-fno-arrows</option></entry>
445             </row>
446             <row>
447               <entry><option>-fallow-undecidable-instances</option></entry>
448               <entry>Enable undecidable instances</entry>
449               <entry>dynamic</entry>
450               <entry><option>-fno-allow-undecidable-instances</option></entry>
451             </row>
452             <row>
453               <entry><option>-fcontext-stack</option><replaceable>n</replaceable></entry>
454               <entry>set the limit for context reduction</entry>
455               <entry>static</entry>
456               <entry><option>-</option></entry>
457             </row>
458             <row>
459               <entry><option>-ffi</option> or <option>-fffi</option></entry>
460               <entry>Enable foreign function interface (implied by
461               <option>-fglasgow-exts</option>)</entry>
462               <entry>dynamic</entry>
463               <entry><option>-fno-ffi</option></entry>
464             </row>
465             <row>
466               <entry><option>-fgenerics</option></entry>
467               <entry>Enable generics</entry>
468               <entry>dynamic</entry>
469               <entry><option>-fno-fgenerics</option></entry>
470             </row>
471             <row>
472               <entry><option>-fglasgow-exts</option></entry>
473               <entry>Enable most language extensions</entry>
474               <entry>dynamic</entry>
475               <entry><option>-fno-glasgow-exts</option></entry>
476             </row>
477             <row>
478               <entry><option>-fignore-asserts</option></entry>
479               <entry>Ignore assertions</entry>
480               <entry>dynamic</entry>
481               <entry><option>-fno-ignore-asserts</option></entry>
482             </row>
483             <row>
484               <entry><option>-fimplicit-params</option></entry>
485               <entry>Enable Implicit Parameters</entry>
486               <entry>dynamic</entry>
487               <entry><option>-fno-implicit-params</option></entry>
488             </row>
489             <row>
490               <entry><option>-firrefutable-tuples</option></entry>
491               <entry>Make tuple pattern matching irrefutable</entry>
492               <entry>dynamic</entry>
493               <entry><option>-fno-irrefutable-tuples</option></entry>
494             </row>
495             <row>
496               <entry><option>-fno-implicit-prelude</option></entry>
497               <entry>Don't implicitly <literal>import Prelude</literal></entry>
498               <entry>dynamic</entry>
499               <entry>-</entry>
500             </row>
501             <row>
502               <entry><option>-fno-monomorphism-restriction</option></entry>
503               <entry>Disable the monomorphism restriction</entry>
504               <entry>dynamic</entry>
505               <entry><option>-</option></entry>
506             </row>
507             <row>
508               <entry><option>-fth</option></entry>
509               <entry>Enable Template Haskell</entry>
510               <entry>dynamic</entry>
511               <entry><option>-fno-th</option></entry>
512             </row>
513           </tbody>
514         </tgroup>
515       </informaltable>
516     </sect2>
517
518     <sect2>
519       <title>Warnings (<xref linkend="options-sanity">)</title>
520       
521     <informaltable>
522       <tgroup cols=3 align=left colsep=1 rowsep=1>
523         <thead>
524           <row>
525             <entry>Flag</entry>
526             <entry>Description</entry>
527             <entry>Static/Dynamic</entry>
528             <entry>Reverse</entry>
529           </row>
530         </thead>
531         <tbody>
532           <row>
533             <entry><option>-W</option></entry>
534             <entry>enable normal warnings</entry>
535             <entry>dynamic</entry>
536             <entry><option>-w</option></entry>
537           </row>
538           <row>
539             <entry><option>-w</option></entry>
540             <entry>disable all warnings</entry>
541             <entry>dynamic</entry>
542             <entry>-</entry>
543           </row>
544           <row>
545             <entry><option>-Wall</option></entry>
546             <entry>enable all warnings</entry>
547             <entry>dynamic</entry>
548             <entry><option>-w</option></entry>
549           </row>
550           <row>
551             <entry><option>-Werror</option></entry>
552             <entry>make warnings fatal</entry>
553             <entry>dynamic</entry>
554             <entry></entry>
555           </row>
556
557           <row>
558             <entry><option>-fwarn-deprecations</option></entry>
559             <entry>warn about uses of functions & types that are deprecated</entry>
560             <entry>dynamic</entry>
561             <entry><option>-fno-warn-deprecations</option></entry>
562           </row>
563
564           <row>
565             <entry><option>-fwarn-duplicate-exports</option></entry>
566             <entry>warn when an entity is exported multiple times</entry>
567             <entry>dynamic</entry>
568             <entry><option>-fno-warn-duplicate-exports</option></entry>
569           </row>
570
571           <row>
572             <entry><option>-fwarn-hi-shadowing</option></entry>
573             <entry>warn when a <literal>.hi</literal> file in the
574             current directory shadows a library</entry>
575             <entry>dynamic</entry>
576             <entry><option>-fno-warn-hi-shadowing</option></entry>
577           </row>
578
579           <row>
580             <entry><option>-fwarn-incomplete-patterns</option></entry>
581             <entry>warn when a pattern match could fail</entry>
582             <entry>dynamic</entry>
583             <entry><option>-fno-warn-incomplete-patterns</option></entry>
584           </row>
585
586           <row>
587             <entry><option>-fwarn-misc</option></entry>
588             <entry>enable miscellaneous warnings</entry>
589             <entry>dynamic</entry>
590             <entry><option>-fno-warn-misc</option></entry>
591           </row>
592
593           <row>
594             <entry><option>-fwarn-missing-fields</option></entry>
595             <entry>warn when fields of a record are uninitialised</entry>
596             <entry>dynamic</entry>
597             <entry><option>-fno-warn-missing-fields</option></entry>
598           </row>
599
600           <row>
601             <entry><option>-fwarn-missing-methods</option></entry>
602             <entry>warn when class methods are undefined</entry>
603             <entry>dynamic</entry>
604             <entry><option>-fno-warn-missing-methods</option></entry>
605           </row>
606
607           <row>
608             <entry><option>-fwarn-missing-signatures</option></entry>
609             <entry>warn about top-level functions without signatures</entry>
610             <entry>dynamic</entry>
611             <entry><option>-fno-warn-missing-signatures</option></entry>
612           </row>
613
614           <row>
615             <entry><option>-fwarn-name-shadowing</option></entry>
616             <entry>warn when names are shadowed</entry>
617             <entry>dynamic</entry>
618             <entry><option>-fno-warn-name-shadowing</option></entry>
619           </row>
620
621           <row>
622             <entry><option>-fwarn-overlapping-patterns</option></entry>
623             <entry>warn about overlapping patterns</entry>
624             <entry>dynamic</entry>
625             <entry><option>-fno-warn-overlapping-patterns</option></entry>
626           </row>
627
628           <row>
629             <entry><option>-fwarn-simple-patterns</option></entry>
630             <entry>warn about lambda-patterns that can fail</entry>
631             <entry>dynamic</entry>
632             <entry><option>-fno-warn-simple-patterns</option></entry>
633           </row>
634
635           <row>
636             <entry><option>-fwarn-type-defaults</option></entry>
637             <entry>warn when defaulting happens</entry>
638             <entry>dynamic</entry>
639             <entry><option>-fno-warn-type-defaults</option></entry>
640           </row>
641
642           <row>
643             <entry><option>-fwarn-unused-binds</option></entry>
644             <entry>warn about bindings that are unused</entry>
645             <entry>dynamic</entry>
646             <entry><option>-fno-warn-unused-binds</option></entry>
647           </row>
648
649           <row>
650             <entry><option>-fwarn-unused-imports</option></entry>
651             <entry>warn about unnecessary imports</entry>
652             <entry>dynamic</entry>
653             <entry><option>-fno-warn-unused-imports</option></entry>
654           </row>
655
656           <row>
657             <entry><option>-fwarn-unused-matches</option></entry>
658             <entry>warn about variables in patterns that aren't used</entry>
659             <entry>dynamic</entry>
660             <entry><option>-fno-warn-unused-matches</option></entry>
661           </row>
662
663           </tbody>
664         </tgroup>
665       </informaltable>
666
667     </sect2>
668     <sect2>
669       <title>Optimisation levels (<xref linkend="options-optimise">)</title>
670
671       <informaltable>
672         <tgroup cols=3 align=left colsep=1 rowsep=1>
673           <thead>
674             <row>
675               <entry>Flag</entry>
676               <entry>Description</entry>
677               <entry>Static/Dynamic</entry>
678               <entry>Reverse</entry>
679             </row>
680           </thead>
681           <tbody>
682             <row>
683               <entry><option>-O</option></entry>
684               <entry>Enable default optimisation (level 1)</entry>
685               <entry>dynamic</entry>
686               <entry><option>-O0</option></entry>
687             </row>
688             <row>
689               <entry><option>-O</option><replaceable>n</replaceable></entry>
690               <entry>Set optimisation level <replaceable>n</replaceable></entry>
691               <entry>dynamic</entry>
692               <entry><option>-O0</option></entry>
693             </row>
694           </tbody>
695         </tgroup>
696       </informaltable>
697               
698     </sect2>
699     <sect2>
700       <title>Individual optimisations (<xref linkend="options-f">)</title>
701
702       <informaltable>
703         <tgroup cols=3 align=left colsep=1 rowsep=1>
704           <thead>
705             <row>
706               <entry>Flag</entry>
707               <entry>Description</entry>
708               <entry>Static/Dynamic</entry>
709               <entry>Reverse</entry>
710             </row>
711           </thead>
712           <tbody>
713             <row>
714               <entry><option>-fcase-merge</option></entry>
715               <entry>Enable case-merging</entry>
716               <entry>dynamic</entry>
717               <entry><option>-fno-case-merge</option></entry>
718             </row>
719
720             <row>
721               <entry><option>-fdicts-strict</option></entry>
722               <entry>Make dictionaries strict</entry>
723               <entry>static</entry>
724               <entry><option>-fno-dicts-strict</option></entry>
725             </row>
726
727             <row>
728               <entry><option>-fdo-eta-reduction</option></entry>
729               <entry>Enable eta-reduction</entry>
730               <entry>dynamic</entry>
731               <entry><option>-fno-do-eta-reduction</option></entry>
732             </row>
733
734             <row>
735               <entry><option>-fdo-lambda-eta-expansion</option></entry>
736               <entry>Enable lambda eta-reduction</entry>
737               <entry>dynamic</entry>
738               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
739             </row>
740
741             <row>
742               <entry><option>-fexcess-precision</option></entry>
743               <entry>Enable excess intermediate precision</entry>
744               <entry>static</entry>
745               <entry><option>-fno-excess-precision</option></entry>
746             </row>
747
748             <row>
749               <entry><option>-frules-off</option></entry>
750               <entry>Switch off all rewrite rules (including rules
751               generated by automatic specialisation of overloaded functions)</entry>
752               <entry>static</entry>
753               <entry><option>-frules-off</option></entry>
754             </row>
755
756             <row>
757               <entry><option>-fignore-asserts</option></entry>
758               <entry>Ignore assertions in the source</entry>
759               <entry>static</entry>
760               <entry><option>-fno-ignore-asserts</option></entry>
761             </row>
762
763             <row>
764               <entry><option>-fignore-interface-pragmas</option></entry>
765               <entry>Ignore pragmas in interface files</entry>
766               <entry>static</entry>
767               <entry><option>-fno-ignore-interface-pragmas</option></entry>
768             </row>
769
770             <row>
771               <entry><option>-fliberate-case-threshold</option></entry>
772               <entry>Tweak the liberate-case optimisation (default: 10)</entry>
773               <entry>static</entry>
774               <entry><option>-fno-liberate-case-threshold</option></entry>
775             </row>
776
777             <row>
778               <entry><option>-fomit-interface-pragmas</option></entry>
779               <entry>Don't generate interface pragmas</entry>
780               <entry>dynamic</entry>
781               <entry><option>-fno-omit-interface-pragmas</option></entry>
782             </row>
783
784             <row>
785               <entry><option>-fmax-worker-args</option></entry>
786               <entry>If a worker has that many arguments, none will be
787                 unpacked anymore (default: 10)</entry>
788               <entry>static</entry>
789               <entry>-</entry>
790             </row>
791
792             <row>
793               <entry><option>-fmax-simplifier-iterations</option></entry>
794               <entry>Set the max iterations for the simplifier</entry>
795               <entry>dynamic</entry>
796               <entry>-</entry>
797             </row>
798
799             <row>
800               <entry><option>-fno-state-hack</option></entry>
801               <entry>Turn off the "state hack" whereby any lambda with a real-world state token
802               as argument is considered to be single-entry.  Hence OK to inline things inside it.</entry>
803               <entry>static</entry>
804               <entry>-</entry>
805             </row>
806
807             <row>
808               <entry><option>-fno-cpr</option></entry>
809               <entry>Turn off CPR analysis</entry>
810               <entry>static</entry>
811               <entry>-fcpr</entry>
812             </row>
813
814             <row>
815               <entry><option>-fno-cse</option></entry>
816               <entry>Turn off common sub-expression</entry>
817               <entry>dynamic</entry>
818               <entry>-</entry>
819             </row>
820
821             <row>
822               <entry><option>-fno-full-laziness</option></entry>
823               <entry>Turn off full laziness (floating bindings outwards).  It is on by default.</entry>
824               <entry>dynamic</entry>
825               <entry>-ffull-laziness</entry>
826             </row>
827
828             <row>
829               <entry><option>-fno-pre-inlining</option></entry>
830               <entry>Turn off pre-inlining</entry>
831               <entry>static</entry>
832               <entry>-</entry>
833             </row>
834
835             <row>
836               <entry><option>-fno-strictness</option></entry>
837               <entry>Turn off strictness analysis</entry>
838               <entry>dynamic</entry>
839               <entry>-</entry>
840             </row>
841
842             <row>
843               <entry><option>-fnumbers-strict</option></entry>
844               <entry>Make numbers strict</entry>
845               <entry>dynamic</entry>
846               <entry><option>-fno-numbers-strict</option></entry>
847             </row>
848
849             <row>
850               <entry><option>-funbox-strict-fields</option></entry>
851               <entry>Flatten strict constructor fields</entry>
852               <entry>dynamic</entry>
853               <entry><option>-fno-unbox-strict-fields</option></entry>
854             </row>
855
856             <row>
857               <entry><option>-funfolding-creation-threshold</option></entry>
858               <entry>Tweak unfolding settings</entry>
859               <entry>static</entry>
860               <entry><option>-fno-unfolding-creation-threshold</option></entry>
861             </row>
862
863             <row>
864               <entry><option>-funfolding-fun-discount</option></entry>
865               <entry>Tweak unfolding settings</entry>
866               <entry>static</entry>
867               <entry><option>-fno-unfolding-fun-discount</option></entry>
868             </row>
869
870             <row>
871               <entry><option>-funfolding-keeness-factor</option></entry>
872               <entry>Tweak unfolding settings</entry>
873               <entry>static</entry>
874               <entry><option>-fno-unfolding-keeness-factor</option></entry>
875             </row>
876
877             <row>
878               <entry><option>-funfolding-update-in-place</option></entry>
879               <entry>Tweak unfolding settings</entry>
880               <entry>static</entry>
881               <entry><option>-fno-unfolding-update-in-place</option></entry>
882             </row>
883
884             <row>
885               <entry><option>-funfolding-use-threshold</option></entry>
886               <entry>Tweak unfolding settings</entry>
887               <entry>static</entry>
888               <entry><option>-fno-unfolding-use-threshold</option></entry>
889             </row>
890           </tbody>
891         </tgroup>
892       </informaltable>
893     </sect2>
894
895     <sect2>
896       <title>Profiling options (<xref linkend="profiling">)</title>
897
898       <informaltable>
899         <tgroup cols=3 align=left colsep=1 rowsep=1>
900           <thead>
901             <row>
902               <entry>Flag</entry>
903               <entry>Description</entry>
904               <entry>Static/Dynamic</entry>
905               <entry>Reverse</entry>
906             </row>
907           </thead>
908           <tbody>
909             <row>
910               <entry><option>-auto</option></entry>
911               <entry>Auto-add <literal>_scc_</literal>s to all
912               exported functions</entry>
913               <entry>static</entry>
914               <entry><option>-no-auto</option></entry>
915             </row>
916             <row>
917               <entry><option>-auto-all</option></entry>
918               <entry>Auto-add <literal>_scc_</literal>s to all
919               top-level functions</entry>
920               <entry>static</entry>
921               <entry><option>-no-auto-all</option></entry>
922             </row>
923             <row>
924               <entry><option>-auto-dicts</option></entry>
925               <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
926               <entry>static</entry>
927               <entry><option>-no-auto-dicts</option></entry>
928             </row>
929             <row>
930               <entry><option>-caf-all</option></entry>
931               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
932               <entry>static</entry>
933               <entry><option>-no-caf-all</option></entry>
934             </row>
935             <row>
936               <entry><option>-prof</option></entry>
937               <entry>Turn on profiling</entry>
938               <entry>static</entry>
939               <entry>-</entry>
940             </row>
941             <row>
942               <entry><option>-ticky</option></entry>
943               <entry>Turn on ticky-ticky profiling</entry>
944               <entry>static</entry>
945               <entry>-</entry>
946             </row>
947           </tbody>
948         </tgroup>
949       </informaltable>
950     </sect2>
951
952     <sect2>
953       <title>Parallelism options (<xref linkend="sec-using-parallel">)</title>
954
955       <informaltable>
956         <tgroup cols=3 align=left colsep=1 rowsep=1>
957           <thead>
958             <row>
959               <entry>Flag</entry>
960               <entry>Description</entry>
961               <entry>Static/Dynamic</entry>
962               <entry>Reverse</entry>
963             </row>
964           </thead>
965           <tbody>
966             <row>
967               <entry><option>-gransim</option></entry>
968               <entry>Enable GRANSIM</entry>
969               <entry>static</entry>
970               <entry>-</entry>
971             </row>
972             <row>
973               <entry><option>-parallel</option></entry>
974               <entry>Enable Parallel Haskell</entry>
975               <entry>static</entry>
976               <entry>-</entry>
977             </row>
978             <row>
979               <entry><option>-smp</option></entry>
980               <entry>Enable SMP support</entry>
981               <entry>static</entry>
982               <entry>-</entry>
983             </row>
984           </tbody>
985         </tgroup>
986       </informaltable>
987     </sect2>
988
989     <sect2>
990       <title>C pre-processor options (<xref linkend="c-pre-processor">)</title>
991
992       <informaltable>
993         <tgroup cols=3 align=left colsep=1 rowsep=1>
994           <thead>
995             <row>
996               <entry>Flag</entry>
997               <entry>Description</entry>
998               <entry>Static/Dynamic</entry>
999               <entry>Reverse</entry>
1000             </row>
1001           </thead>
1002           <tbody>
1003             <row>
1004               <entry><option>-cpp</option></entry>
1005               <entry>Run the C pre-processor on Haskell source files</entry>
1006               <entry>dynamic</entry>
1007               <entry>-</entry>
1008             </row>
1009             <row>
1010               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1011               <entry>Define a symbol in the C pre-processor</entry>
1012               <entry>dynamic</entry>
1013               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1014             </row>
1015             <row>
1016               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1017               <entry>Undefine a symbol in the C pre-processor</entry>
1018               <entry>dynamic</entry>
1019               <entry>-</entry>
1020             </row>
1021             <row>
1022               <entry><option>-I</option><replaceable>dir</replaceable></entry>
1023               <entry>Add <replaceable>dir</replaceable> to the
1024               directory search list for <literal>#include</literal> files</entry>
1025               <entry>static</entry>
1026               <entry>-</entry>
1027             </row>
1028           </tbody>
1029         </tgroup>
1030       </informaltable>
1031     </sect2>
1032
1033     <sect2>
1034       <title>C compiler options (<xref linkend="options-C-compiler">)</title>
1035       <informaltable>
1036         <tgroup cols=3 align=left colsep=1 rowsep=1>
1037           <thead>
1038             <row>
1039               <entry>Flag</entry>
1040               <entry>Description</entry>
1041               <entry>Static/Dynamic</entry>
1042               <entry>Reverse</entry>
1043             </row>
1044           </thead>
1045           <tbody>
1046             <row>
1047               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1048               <entry>Include <replaceable>file</replaceable> when
1049               compiling the <filename>.hc</filename> file</entry>
1050               <entry>dynamic</entry>
1051               <entry>-</entry>
1052             </row>
1053           </tbody>
1054         </tgroup>
1055       </informaltable>
1056     </sect2>
1057
1058     <sect2>
1059       <title>Code generation options (<xref linkend="options-codegen">)</title>
1060
1061       <informaltable>
1062         <tgroup cols=3 align=left colsep=1 rowsep=1>
1063           <thead>
1064             <row>
1065               <entry>Flag</entry>
1066               <entry>Description</entry>
1067               <entry>Static/Dynamic</entry>
1068               <entry>Reverse</entry>
1069             </row>
1070           </thead>
1071           <tbody>
1072             <row>
1073               <entry><option>-fasm</option></entry>
1074               <entry>Use the native code generator</entry>
1075               <entry>dynamic</entry>
1076               <entry>-fvia-C</entry>
1077             </row>
1078             <row>
1079               <entry><option>-fvia-C</option></entry>
1080               <entry>Compile via C</entry>
1081               <entry>dynamic</entry>
1082               <entry>-fasm</entry>
1083             </row>
1084             <row>
1085               <entry><option>-fno-code</option></entry>
1086               <entry>Omit code generation</entry>
1087               <entry>static</entry>
1088               <entry>-</entry>
1089             </row>
1090           </tbody>
1091         </tgroup>
1092       </informaltable>
1093     </sect2>
1094
1095     <sect2>
1096       <title>Linking options (<xref linkend="options-linker">)</title>
1097
1098       <informaltable>
1099         <tgroup cols=3 align=left colsep=1 rowsep=1>
1100           <thead>
1101             <row>
1102               <entry>Flag</entry>
1103               <entry>Description</entry>
1104               <entry>Static/Dynamic</entry>
1105               <entry>Reverse</entry>
1106             </row>
1107           </thead>
1108           <tbody>
1109             <row>
1110               <entry><option>-dynamic</option></entry>
1111               <entry>Use dynamic Haskell libraries (if available)</entry>
1112               <entry>static</entry>
1113               <entry>-</entry>
1114             </row>
1115             <row>
1116               <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1117               <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1118                 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1119               <entry>static</entry>
1120               <entry>-</entry>
1121             </row>
1122             <row>
1123               <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1124               <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1125                 directories searched for frameworks.
1126                 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1127               <entry>static</entry>
1128               <entry>-</entry>
1129             </row>
1130             <row>
1131               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1132               <entry>Link in library <replaceable>lib</replaceable></entry>
1133               <entry>static</entry>
1134               <entry>-</entry>
1135             </row>
1136             <row>
1137               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1138               <entry>Add <replaceable>dir</replaceable> to the list of
1139               directories searched for libraries</entry>
1140               <entry>static</entry>
1141               <entry>-</entry>
1142             </row>
1143             <row>
1144               <entry><option>-main-is</option></entry>
1145               <entry>Set main function</entry>
1146               <entry>static</entry>
1147               <entry>-</entry>
1148             </row>
1149             <row>
1150               <entry><option>-no-hs-main</option></entry>
1151               <entry>Don't asssume this program contains <literal>main</literal></entry>
1152               <entry>static</entry>
1153               <entry>-</entry>
1154             </row>
1155             <row>
1156               <entry><option>-no-link</option></entry>
1157               <entry>Omit linking</entry>
1158               <entry>static</entry>
1159               <entry>-</entry>
1160             </row>
1161             <row>
1162               <entry><option>-package</option> <replaceable>name</replaceable></entry>
1163               <entry>Link in package <replaceable>name</replaceable></entry>
1164               <entry>static</entry>
1165               <entry>-</entry>
1166             </row>
1167             <row>
1168               <entry><option>-split-objs</option></entry>
1169               <entry>Split objects (for libraries)</entry>
1170               <entry>static</entry>
1171               <entry>-</entry>
1172             </row>
1173             <row>
1174               <entry><option>-static</option></entry>
1175               <entry>Use static Haskell libraries</entry>
1176               <entry>static</entry>
1177               <entry>-</entry>
1178             </row>
1179             <row>
1180               <entry><option>-threaded</option></entry>
1181               <entry>Use the threaded runtime</entry>
1182               <entry>static</entry>
1183               <entry>-</entry>
1184             </row>
1185             <row>
1186               <entry><option>-debug</option></entry>
1187               <entry>Use the debugging runtime</entry>
1188               <entry>static</entry>
1189               <entry>-</entry>
1190             </row>
1191           </tbody>
1192         </tgroup>
1193       </informaltable>
1194     </sect2>
1195
1196     <sect2>
1197       <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1198
1199       <informaltable>
1200         <tgroup cols=3 align=left colsep=1 rowsep=1>
1201           <thead>
1202             <row>
1203               <entry>Flag</entry>
1204               <entry>Description</entry>
1205               <entry>Static/Dynamic</entry>
1206               <entry>Reverse</entry>
1207             </row>
1208           </thead>
1209           <tbody>
1210             <row>
1211               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1212               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1213               <entry>static</entry>
1214               <entry>-</entry>
1215             </row>
1216             <row>
1217               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1218               <entry>Use <replaceable>cmd</replaceable> as the C
1219               pre-processor (with <option>-cpp</option> only)</entry>
1220               <entry>static</entry> <entry>-</entry>
1221             </row>
1222             <row>
1223               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1224               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1225               <entry>static</entry>
1226               <entry>-</entry>
1227             </row>
1228             <row>
1229               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1230               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1231               <entry>static</entry>
1232               <entry>-</entry>
1233             </row>
1234             <row>
1235               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1236               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1237               <entry>static</entry>
1238               <entry>-</entry>
1239             </row>
1240             <row>
1241               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1242               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1243               <entry>static</entry>
1244               <entry>-</entry>
1245             </row>
1246             <row>
1247               <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1248               <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1249               <entry>static</entry>
1250               <entry>-</entry>
1251             </row>
1252             <row>
1253               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1254               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1255               (with <option>-F</option> only)</entry>
1256               <entry>static</entry>
1257               <entry>-</entry>
1258             </row>
1259           </tbody>
1260         </tgroup>
1261       </informaltable>
1262       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1263       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1264       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1265       <indexterm><primary><option>-pgma</option></primary></indexterm>
1266       <indexterm><primary><option>-pgml</option></primary></indexterm>
1267       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1268       <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1269       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1270
1271     </sect2>
1272
1273     <sect2>
1274       <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1275
1276       <informaltable>
1277         <tgroup cols=3 align=left colsep=1 rowsep=1>
1278           <thead>
1279             <row>
1280               <entry>Flag</entry>
1281               <entry>Description</entry>
1282               <entry>Static/Dynamic</entry>
1283               <entry>Reverse</entry>
1284             </row>
1285           </thead>
1286           <tbody>
1287             <row>
1288               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1289               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1290               <entry>dynamic</entry>
1291               <entry>-</entry>
1292             </row>
1293             <row>
1294               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1295               <entry>pass <replaceable>option</replaceable> to cpp (with
1296               <option>-cpp</option> only)</entry>
1297               <entry>dynamic</entry>
1298               <entry>-</entry>
1299             </row>
1300             <row>
1301               <entry><option>-optF</option> <replaceable>option</replaceable></entry>
1302               <entry>pass <replaceable>option</replaceable> to the
1303               custom pre-processor</entry>
1304               <entry>dynamic</entry>
1305               <entry>-</entry>
1306             </row>
1307             <row>
1308               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1309               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1310               <entry>dynamic</entry>
1311               <entry>-</entry>
1312             </row>
1313             <row>
1314               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1315               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1316               <entry>dynamic</entry>
1317               <entry>-</entry>
1318             </row>
1319             <row>
1320               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1321               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1322               <entry>static</entry>
1323               <entry>-</entry>
1324             </row>
1325             <row>
1326               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1327               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1328               <entry>static</entry>
1329               <entry>-</entry>
1330             </row>
1331             <row>
1332               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1333               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1334               <entry>static</entry>
1335               <entry>-</entry>
1336             </row>
1337           </tbody>
1338         </tgroup>
1339       </informaltable>
1340     </sect2>
1341
1342     <sect2>
1343       <title>Platform-specific options (<xref linkend="options-platform">)</title>
1344       
1345       <informaltable>
1346         <tgroup cols=3 align=left colsep=1 rowsep=1>
1347           <thead>
1348             <row>
1349               <entry>Flag</entry>
1350               <entry>Description</entry>
1351               <entry>Static/Dynamic</entry>
1352               <entry>Reverse</entry>
1353             </row>
1354           </thead>
1355           <tbody>
1356             <row>
1357               <entry><option>-mv8</option></entry>
1358               <entry>(SPARC only) enable version 8 support</entry>
1359               <entry>static</entry>
1360               <entry>-</entry>
1361             </row>
1362             <row>
1363               <entry><option>-monly-[32]-regs</option></entry>
1364               <entry>(x86 only) give some registers back to the C compiler</entry>
1365               <entry>dynamic</entry>
1366               <entry>-</entry>
1367             </row>
1368           </tbody>
1369         </tgroup>
1370       </informaltable>
1371     </sect2>
1372
1373          
1374     <sect2>
1375       <title>External core file options (<xref linkend="ext-core">)</title>
1376
1377       <informaltable>
1378         <tgroup cols=3 align=left colsep=1 rowsep=1>
1379           <thead>
1380             <row>
1381               <entry>Flag</entry>
1382               <entry>Description</entry>
1383               <entry>Static/Dynamic</entry>
1384               <entry>Reverse</entry>
1385             </row>
1386           </thead>
1387           <tbody>
1388             <row>
1389               <entry><option>-fext-core</option></entry>
1390               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1391               <entry>static</entry>
1392               <entry>-</entry>
1393             </row>
1394           </tbody>
1395         </tgroup>
1396       </informaltable>
1397     </sect2>
1398         
1399
1400     <sect2>
1401       <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1402
1403       <informaltable>
1404         <tgroup cols=3 align=left colsep=1 rowsep=1>
1405           <thead>
1406             <row>
1407               <entry>Flag</entry>
1408               <entry>Description</entry>
1409               <entry>Static/Dynamic</entry>
1410               <entry>Reverse</entry>
1411             </row>
1412           </thead>
1413           <tbody>
1414             <row>
1415               <entry><option>-dcore-lint</option></entry>
1416               <entry>Turn on internal sanity checking</entry>
1417               <entry>dynamic</entry>
1418               <entry>-</entry>
1419             </row>
1420             <row>
1421               <entry><option>-ddump-absC</option></entry>
1422               <entry>Dump abstract C</entry>
1423               <entry>dynamic</entry>
1424               <entry>-</entry>
1425             </row>
1426             <row>
1427               <entry><option>-ddump-asm</option></entry>
1428               <entry>Dump assembly</entry>
1429               <entry>dynamic</entry>
1430               <entry>-</entry>
1431             </row>
1432             <row>
1433               <entry><option>-ddump-bcos</option></entry>
1434               <entry>Dump interpreter byte code</entry>
1435               <entry>dynamic</entry>
1436               <entry>-</entry>
1437             </row>
1438             <row>
1439               <entry><option>-ddump-cpranal</option></entry>
1440               <entry>Dump output from CPR analysis</entry>
1441               <entry>dynamic</entry>
1442               <entry>-</entry>
1443             </row>
1444             <row>
1445               <entry><option>-ddump-cse</option></entry>
1446               <entry>Dump CSE output</entry>
1447               <entry>dynamic</entry>
1448               <entry>-</entry>
1449             </row>
1450             <row>
1451               <entry><option>-ddump-deriv</option></entry>
1452               <entry>Dump deriving output</entry>
1453               <entry>dynamic</entry>
1454               <entry>-</entry>
1455             </row>
1456             <row>
1457               <entry><option>-ddump-ds</option></entry>
1458               <entry>Dump desugarer output</entry>
1459               <entry>dynamic</entry>
1460               <entry>-</entry>
1461             </row>
1462             <row>
1463               <entry><option>-ddump-flatC</option></entry>
1464               <entry>Dump &ldquo;flat&rdquo; C</entry>
1465               <entry>dynamic</entry>
1466               <entry>-</entry>
1467             </row>
1468             <row>
1469               <entry><option>-ddump-foreign</option></entry>
1470               <entry>Dump <literal>foreign export</literal> stubs</entry>
1471               <entry>dynamic</entry>
1472               <entry>-</entry>
1473             </row>
1474             <row>
1475               <entry><option>-ddump-inlinings</option></entry>
1476               <entry>Dump inlining info</entry>
1477               <entry>dynamic</entry>
1478               <entry>-</entry>
1479             </row>
1480             <row>
1481               <entry><option>-ddump-occur-anal</option></entry>
1482               <entry>Dump occurrence analysis output</entry>
1483               <entry>dynamic</entry>
1484               <entry>-</entry>
1485             </row>
1486             <row>
1487               <entry><option>-ddump-parsed</option></entry>
1488               <entry>Dump parse tree</entry>
1489               <entry>dynamic</entry>
1490               <entry>-</entry>
1491             </row>
1492             <row>
1493               <entry><option>-ddump-realC</option></entry>
1494               <entry>Dump &ldquo;real&rdquo; C</entry>
1495               <entry>dynamic</entry>
1496               <entry>-</entry>
1497             </row>
1498             <row>
1499               <entry><option>-ddump-rn</option></entry>
1500               <entry>Dump renamer output</entry>
1501               <entry>dynamic</entry>
1502               <entry>-</entry>
1503             </row>
1504             <row>
1505               <entry><option>-ddump-rules</option></entry>
1506               <entry>Dump rules</entry>
1507               <entry>dynamic</entry>
1508               <entry>-</entry>
1509             </row>
1510             <row>
1511               <entry><option>-ddump-sat</option></entry>
1512               <entry>Dump saturated output</entry>
1513               <entry>dynamic</entry>
1514               <entry>-</entry>
1515             </row>
1516             <row>
1517               <entry><option>-ddump-simpl</option></entry>
1518               <entry>Dump final simplifier output</entry>
1519               <entry>dynamic</entry>
1520               <entry>-</entry>
1521             </row>
1522             <row>
1523               <entry><option>-ddump-simpl-iterations</option></entry>
1524               <entry>Dump output from each simplifier iteration</entry>
1525               <entry>dynamic</entry>
1526               <entry>-</entry>
1527             </row>
1528             <row>
1529               <entry><option>-ddump-spec</option></entry>
1530               <entry>Dump specialiser output</entry>
1531               <entry>dynamic</entry>
1532               <entry>-</entry>
1533             </row>
1534             <row>
1535               <entry><option>-ddump-stg</option></entry>
1536               <entry>Dump final STG</entry>
1537               <entry>dynamic</entry>
1538               <entry>-</entry>
1539             </row>
1540             <row>
1541               <entry><option>-ddump-stranal</option></entry>
1542               <entry>Dump strictness analyser output</entry>
1543               <entry>dynamic</entry>
1544               <entry>-</entry>
1545             </row>
1546             <row>
1547               <entry><option>-ddump-tc</option></entry>
1548               <entry>Dump typechecker output</entry>
1549               <entry>dynamic</entry>
1550               <entry>-</entry>
1551             </row>
1552             <row>
1553               <entry><option>-ddump-types</option></entry>
1554               <entry>Dump type signatures</entry>
1555               <entry>dynamic</entry>
1556               <entry>-</entry>
1557             </row>
1558             <row>
1559               <entry><option>-ddump-usagesp</option></entry>
1560               <entry>Dump UsageSP analysis output</entry>
1561               <entry>dynamic</entry>
1562               <entry>-</entry>
1563             </row>
1564             <row>
1565               <entry><option>-ddump-worker-wrapper</option></entry>
1566               <entry>Dump worker-wrapper output</entry>
1567               <entry>dynamic</entry>
1568               <entry>-</entry>
1569             </row>
1570             <row>
1571               <entry><option>-ddump-rn-trace</option></entry>
1572               <entry>Trace renamer</entry>
1573               <entry>dynamic</entry>
1574               <entry>-</entry>
1575             </row>
1576             <row>
1577               <entry><option>-ddump-rn-stats</option></entry>
1578               <entry>Renamer stats</entry>
1579               <entry>dynamic</entry>
1580               <entry>-</entry>
1581             </row>
1582             <row>
1583               <entry><option>-ddump-stix</option></entry>
1584               <entry>Native code generator intermediate form</entry>
1585               <entry>dynamic</entry>
1586               <entry>-</entry>
1587             </row>
1588             <row>
1589               <entry><option>-ddump-simpl-stats</option></entry>
1590               <entry>Dump simplifier stats</entry>
1591               <entry>dynamic</entry>
1592               <entry>-</entry>
1593             </row>
1594             <row>
1595               <entry><option>-dppr-debug</option></entry>
1596               <entry>Turn on debug printing (more verbose)</entry>
1597               <entry>static</entry>
1598               <entry>-</entry>
1599             </row>
1600             <row>
1601               <entry><option>-dppr-noprags</option></entry>
1602               <entry>Don't output pragma info in dumps</entry>
1603               <entry>static</entry>
1604               <entry>-</entry>
1605             </row>
1606             <row>
1607               <entry><option>-dppr-user-length</option></entry>
1608               <entry>Set the depth for printing expressions in error msgs</entry>
1609               <entry>static</entry>
1610               <entry>-</entry>
1611             </row>
1612             <row>
1613               <entry><option>-dsource-stats</option></entry>
1614               <entry>Dump haskell source stats</entry>
1615               <entry>dynamic</entry>
1616               <entry>-</entry>
1617             </row>
1618             <row>
1619               <entry><option>-dstg-lint</option></entry>
1620               <entry>STG pass sanity checking</entry>
1621               <entry>dynamic</entry>
1622               <entry>-</entry>
1623             </row>
1624             <row>
1625               <entry><option>-dstg-stats</option></entry>
1626               <entry>Dump STG stats</entry>
1627               <entry>dynamic</entry>
1628               <entry>-</entry>
1629             </row>
1630             <row>
1631               <entry><option>-dusagesp-lint</option></entry>
1632               <entry>UsageSP sanity checker</entry>
1633               <entry>dynamic</entry>
1634               <entry>-</entry>
1635             </row>
1636             <row>
1637               <entry><option>-dverbose-core2core</option></entry>
1638               <entry>Show output from each core-to-core pass</entry>
1639               <entry>dynamic</entry>
1640               <entry>-</entry>
1641             </row>
1642             <row>
1643               <entry><option>-dverbose-stg2stg</option></entry>
1644               <entry>Show output from each STG-to-STG pass</entry>
1645               <entry>dynamic</entry>
1646               <entry>-</entry>
1647             </row>
1648             <row>
1649               <entry><option>-unreg</option></entry>
1650               <entry>Enable unregisterised compilation</entry>
1651               <entry>static</entry>
1652               <entry>-</entry>
1653             </row>
1654           </tbody>
1655         </tgroup>
1656       </informaltable>
1657     </sect2>
1658       
1659     <sect2>
1660       <title>Misc compiler options</title>
1661
1662       <informaltable>
1663         <tgroup cols=3 align=left colsep=1 rowsep=1>
1664           <thead>
1665             <row>
1666               <entry>Flag</entry>
1667               <entry>Description</entry>
1668               <entry>Static/Dynamic</entry>
1669               <entry>Reverse</entry>
1670             </row>
1671           </thead>
1672           <tbody>
1673             <row>
1674               <entry><option>-femit-extern-decls</option></entry>
1675               <entry>???</entry>
1676               <entry>static</entry>
1677               <entry>-</entry>
1678             </row>
1679             <row>
1680               <entry><option>-fglobalise-toplev-names</option></entry>
1681               <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1682               <entry>static</entry>
1683               <entry>-</entry>
1684             </row>
1685             <row>
1686               <entry><option>-fno-hi-version-check</option></entry>
1687               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1688               <entry>static</entry>
1689               <entry>-</entry>
1690             </row>
1691             <row>
1692               <entry><option>-dno-black-holing</option></entry>
1693               <entry>Turn off black holing (probably doesn't work)</entry>
1694               <entry>static</entry>
1695               <entry>-</entry>
1696             </row>
1697             <row>
1698               <entry><option>-fno-method-sharing</option></entry>
1699               <entry>Don't share specialisations of overloaded functions</entry>
1700               <entry>static</entry>
1701               <entry>-</entry>
1702             </row>
1703             <row>
1704               <entry><option>-fno-prune-decls</option></entry>
1705               <entry>Renamer: don't prune declarations</entry>
1706               <entry>static</entry>
1707               <entry>-</entry>
1708             </row>
1709             <row>
1710               <entry><option>-fhistory-size</option></entry>
1711               <entry>Set simplification history size</entry>
1712               <entry>static</entry>
1713               <entry>-</entry>
1714             </row>
1715             <row>
1716               <entry><option>-funregisterised</option></entry>
1717               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1718               <entry>static</entry>
1719               <entry>-</entry>
1720             </row>
1721             <row>
1722               <entry><option>-fno-asm-mangling</option></entry>
1723               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1724               <entry>static</entry>
1725               <entry>-</entry>
1726             </row>
1727           </tbody>
1728         </tgroup>
1729       </informaltable>
1730     </sect2>
1731   </sect1>
1732
1733
1734 <!--
1735 Still to document:
1736
1737 Misc:
1738   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1739   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
1740
1741   -Bdir
1742 -->
1743
1744 <!-- Emacs stuff:
1745      ;;; Local Variables: ***
1746      ;;; mode: sgml ***
1747      ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***
1748      ;;; End: ***
1749  -->