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