[project @ 2003-09-23 16:02:34 by simonmar]
[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>dynamic</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             <row>
514               <entry><option>-fwith</option></entry>
515               <entry>Enable deprecated <literal>with</literal> keyword</entry>
516               <entry>dynamic</entry>
517               <entry><option>-fno-with</option></entry>
518             </row>
519           </tbody>
520         </tgroup>
521       </informaltable>
522     </sect2>
523
524     <sect2>
525       <title>Warnings (<xref linkend="options-sanity">)</title>
526       
527     <informaltable>
528       <tgroup cols=3 align=left colsep=1 rowsep=1>
529         <thead>
530           <row>
531             <entry>Flag</entry>
532             <entry>Description</entry>
533             <entry>Static/Dynamic</entry>
534             <entry>Reverse</entry>
535           </row>
536         </thead>
537         <tbody>
538           <row>
539             <entry><option>-W</option></entry>
540             <entry>enable normal warnings</entry>
541             <entry>dynamic</entry>
542             <entry><option>-w</option></entry>
543           </row>
544           <row>
545             <entry><option>-w</option></entry>
546             <entry>disable all warnings</entry>
547             <entry>dynamic</entry>
548             <entry>-</entry>
549           </row>
550           <row>
551             <entry><option>-Wall</option></entry>
552             <entry>enable all warnings</entry>
553             <entry>dynamic</entry>
554             <entry><option>-w</option></entry>
555           </row>
556           <row>
557             <entry><option>-Werror</option></entry>
558             <entry>make warnings fatal</entry>
559             <entry>dynamic</entry>
560             <entry></entry>
561           </row>
562
563           <row>
564             <entry><option>-fwarn-deprecations</option></entry>
565             <entry>warn about uses of functions & types that are deprecated</entry>
566             <entry>dynamic</entry>
567             <entry><option>-fno-warn-deprecations</option></entry>
568           </row>
569
570           <row>
571             <entry><option>-fwarn-duplicate-exports</option></entry>
572             <entry>warn when an entity is exported multiple times</entry>
573             <entry>dynamic</entry>
574             <entry><option>-fno-warn-duplicate-exports</option></entry>
575           </row>
576
577           <row>
578             <entry><option>-fwarn-hi-shadowing</option></entry>
579             <entry>warn when a <literal>.hi</literal> file in the
580             current directory shadows a library</entry>
581             <entry>dynamic</entry>
582             <entry><option>-fno-warn-hi-shadowing</option></entry>
583           </row>
584
585           <row>
586             <entry><option>-fwarn-incomplete-patterns</option></entry>
587             <entry>warn when a pattern match could fail</entry>
588             <entry>dynamic</entry>
589             <entry><option>-fno-warn-incomplete-patterns</option></entry>
590           </row>
591
592           <row>
593             <entry><option>-fwarn-misc</option></entry>
594             <entry>enable miscellaneous warnings</entry>
595             <entry>dynamic</entry>
596             <entry><option>-fno-warn-misc</option></entry>
597           </row>
598
599           <row>
600             <entry><option>-fwarn-missing-fields</option></entry>
601             <entry>warn when fields of a record are uninitialised</entry>
602             <entry>dynamic</entry>
603             <entry><option>-fno-warn-missing-fields</option></entry>
604           </row>
605
606           <row>
607             <entry><option>-fwarn-missing-methods</option></entry>
608             <entry>warn when class methods are undefined</entry>
609             <entry>dynamic</entry>
610             <entry><option>-fno-warn-missing-methods</option></entry>
611           </row>
612
613           <row>
614             <entry><option>-fwarn-missing-signatures</option></entry>
615             <entry>warn about top-level functions without signatures</entry>
616             <entry>dynamic</entry>
617             <entry><option>-fno-warn-missing-signatures</option></entry>
618           </row>
619
620           <row>
621             <entry><option>-fwarn-name-shadowing</option></entry>
622             <entry>warn when names are shadowed</entry>
623             <entry>dynamic</entry>
624             <entry><option>-fno-warn-name-shadowing</option></entry>
625           </row>
626
627           <row>
628             <entry><option>-fwarn-overlapping-patterns</option></entry>
629             <entry>warn about overlapping patterns</entry>
630             <entry>dynamic</entry>
631             <entry><option>-fno-warn-overlapping-patterns</option></entry>
632           </row>
633
634           <row>
635             <entry><option>-fwarn-simple-patterns</option></entry>
636             <entry>warn about lambda-patterns that can fail</entry>
637             <entry>dynamic</entry>
638             <entry><option>-fno-warn-simple-patterns</option></entry>
639           </row>
640
641           <row>
642             <entry><option>-fwarn-type-defaults</option></entry>
643             <entry>warn when defaulting happens</entry>
644             <entry>dynamic</entry>
645             <entry><option>-fno-warn-type-defaults</option></entry>
646           </row>
647
648           <row>
649             <entry><option>-fwarn-unused-binds</option></entry>
650             <entry>warn about bindings that are unused</entry>
651             <entry>dynamic</entry>
652             <entry><option>-fno-warn-unused-binds</option></entry>
653           </row>
654
655           <row>
656             <entry><option>-fwarn-unused-imports</option></entry>
657             <entry>warn about unnecessary imports</entry>
658             <entry>dynamic</entry>
659             <entry><option>-fno-warn-unused-imports</option></entry>
660           </row>
661
662           <row>
663             <entry><option>-fwarn-unused-matches</option></entry>
664             <entry>warn about variables in patterns that aren't used</entry>
665             <entry>dynamic</entry>
666             <entry><option>-fno-warn-unused-matches</option></entry>
667           </row>
668
669           </tbody>
670         </tgroup>
671       </informaltable>
672
673     </sect2>
674     <sect2>
675       <title>Optimisation levels (<xref linkend="options-optimise">)</title>
676
677       <informaltable>
678         <tgroup cols=3 align=left colsep=1 rowsep=1>
679           <thead>
680             <row>
681               <entry>Flag</entry>
682               <entry>Description</entry>
683               <entry>Static/Dynamic</entry>
684               <entry>Reverse</entry>
685             </row>
686           </thead>
687           <tbody>
688             <row>
689               <entry><option>-O</option></entry>
690               <entry>Enable default optimisation (level 1)</entry>
691               <entry>dynamic</entry>
692               <entry><option>-O0</option></entry>
693             </row>
694             <row>
695               <entry><option>-O</option><replaceable>n</replaceable></entry>
696               <entry>Set optimisation level <replaceable>n</replaceable></entry>
697               <entry>dyanamic</entry>
698               <entry><option>-O0</option></entry>
699             </row>
700           </tbody>
701         </tgroup>
702       </informaltable>
703               
704     </sect2>
705     <sect2>
706       <title>Individual optimisations (<xref linkend="options-f">)</title>
707
708       <informaltable>
709         <tgroup cols=3 align=left colsep=1 rowsep=1>
710           <thead>
711             <row>
712               <entry>Flag</entry>
713               <entry>Description</entry>
714               <entry>Static/Dynamic</entry>
715               <entry>Reverse</entry>
716             </row>
717           </thead>
718           <tbody>
719             <row>
720               <entry><option>-fcase-merge</option></entry>
721               <entry>Enable case-merging</entry>
722               <entry>dynamic</entry>
723               <entry><option>-fno-case-merge</option></entry>
724             </row>
725
726             <row>
727               <entry><option>-fdicts-strict</option></entry>
728               <entry>Make dictionaries strict</entry>
729               <entry>static</entry>
730               <entry><option>-fno-dicts-strict</option></entry>
731             </row>
732
733             <row>
734               <entry><option>-fdo-eta-reduction</option></entry>
735               <entry>Enable eta-reduction</entry>
736               <entry>dynamic</entry>
737               <entry><option>-fno-do-eta-reduction</option></entry>
738             </row>
739
740             <row>
741               <entry><option>-fdo-lambda-eta-expansion</option></entry>
742               <entry>Enable lambda eta-reduction</entry>
743               <entry>dynamic</entry>
744               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
745             </row>
746
747             <row>
748               <entry><option>-fexcess-precision</option></entry>
749               <entry>Enable excess intermediate precision</entry>
750               <entry>static</entry>
751               <entry><option>-fno-excess-precision</option></entry>
752             </row>
753
754             <row>
755               <entry><option>-frules-off</option></entry>
756               <entry>Switch off all rewrite rules (including rules
757               generated by automatic specialisation of overloaded functions)</entry>
758               <entry>static</entry>
759               <entry><option>-frules-off</option></entry>
760             </row>
761
762             <row>
763               <entry><option>-fignore-asserts</option></entry>
764               <entry>Ignore assertions in the source</entry>
765               <entry>static</entry>
766               <entry><option>-fno-ignore-asserts</option></entry>
767             </row>
768
769             <row>
770               <entry><option>-fignore-interface-pragmas</option></entry>
771               <entry>Ignore pragmas in interface files</entry>
772               <entry>static</entry>
773               <entry><option>-fno-ignore-interface-pragmas</option></entry>
774             </row>
775
776             <row>
777               <entry><option>-fliberate-case-threshold</option></entry>
778               <entry>Tweak the liberate-case optimisation (default: 10)</entry>
779               <entry>static</entry>
780               <entry><option>-fno-liberate-case-threshold</option></entry>
781             </row>
782
783             <row>
784               <entry><option>-fomit-interface-pragmas</option></entry>
785               <entry>Don't generate interface pragmas</entry>
786               <entry>dynamic</entry>
787               <entry><option>-fno-omit-interface-pragmas</option></entry>
788             </row>
789
790             <row>
791               <entry><option>-fmax-worker-args</option></entry>
792               <entry>If a worker has that many arguments, none will be
793                 unpacked anymore (default: 10)</entry>
794               <entry>static</entry>
795               <entry>-</entry>
796             </row>
797
798             <row>
799               <entry><option>-fmax-simplifier-iterations</option></entry>
800               <entry>Set the max iterations for the simplifier</entry>
801               <entry>dynamic</entry>
802               <entry>-</entry>
803             </row>
804
805             <row>
806               <entry><option>-fno-cpr</option></entry>
807               <entry>Turn off CPR analysis</entry>
808               <entry>static</entry>
809               <entry>-</entry>
810             </row>
811
812             <row>
813               <entry><option>-fno-cse</option></entry>
814               <entry>Turn off common sub-expression</entry>
815               <entry>dynamic</entry>
816               <entry>-</entry>
817             </row>
818
819             <row>
820               <entry><option>-fno-pre-inlining</option></entry>
821               <entry>Turn off pre-inlining</entry>
822               <entry>static</entry>
823               <entry>-</entry>
824             </row>
825
826             <row>
827               <entry><option>-fno-strictness</option></entry>
828               <entry>Turn off strictness analysis</entry>
829               <entry>dynamic</entry>
830               <entry>-</entry>
831             </row>
832
833             <row>
834               <entry><option>-fnumbers-strict</option></entry>
835               <entry>Make numbers strict</entry>
836               <entry>dynamic</entry>
837               <entry><option>-fno-numbers-strict</option></entry>
838             </row>
839
840             <row>
841               <entry><option>-funbox-strict-fields</option></entry>
842               <entry>Flatten strict constructor fields</entry>
843               <entry>dynamic</entry>
844               <entry><option>-fno-unbox-strict-fields</option></entry>
845             </row>
846
847             <row>
848               <entry><option>-funfolding-creation-threshold</option></entry>
849               <entry>Tweak unfolding settings</entry>
850               <entry>static</entry>
851               <entry><option>-fno-unfolding-creation-threshold</option></entry>
852             </row>
853
854             <row>
855               <entry><option>-funfolding-fun-discount</option></entry>
856               <entry>Tweak unfolding settings</entry>
857               <entry>static</entry>
858               <entry><option>-fno-unfolding-fun-discount</option></entry>
859             </row>
860
861             <row>
862               <entry><option>-funfolding-keeness-factor</option></entry>
863               <entry>Tweak unfolding settings</entry>
864               <entry>static</entry>
865               <entry><option>-fno-unfolding-keeness-factor</option></entry>
866             </row>
867
868             <row>
869               <entry><option>-funfolding-update-in-place</option></entry>
870               <entry>Tweak unfolding settings</entry>
871               <entry>static</entry>
872               <entry><option>-fno-unfolding-update-in-place</option></entry>
873             </row>
874
875             <row>
876               <entry><option>-funfolding-use-threshold</option></entry>
877               <entry>Tweak unfolding settings</entry>
878               <entry>static</entry>
879               <entry><option>-fno-unfolding-use-threshold</option></entry>
880             </row>
881           </tbody>
882         </tgroup>
883       </informaltable>
884     </sect2>
885
886     <sect2>
887       <title>Profiling options (<xref linkend="profiling">)</title>
888
889       <informaltable>
890         <tgroup cols=3 align=left colsep=1 rowsep=1>
891           <thead>
892             <row>
893               <entry>Flag</entry>
894               <entry>Description</entry>
895               <entry>Static/Dynamic</entry>
896               <entry>Reverse</entry>
897             </row>
898           </thead>
899           <tbody>
900             <row>
901               <entry><option>-auto</option></entry>
902               <entry>Auto-add <literal>_scc_</literal>s to all
903               exported functions</entry>
904               <entry>static</entry>
905               <entry><option>-no-auto</option></entry>
906             </row>
907             <row>
908               <entry><option>-auto-all</option></entry>
909               <entry>Auto-add <literal>_scc_</literal>s to all
910               top-level functions</entry>
911               <entry>static</entry>
912               <entry><option>-no-auto-all</option></entry>
913             </row>
914             <row>
915               <entry><option>-auto-dicts</option></entry>
916               <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
917               <entry>static</entry>
918               <entry><option>-no-auto-dicts</option></entry>
919             </row>
920             <row>
921               <entry><option>-caf-all</option></entry>
922               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
923               <entry>static</entry>
924               <entry><option>-no-caf-all</option></entry>
925             </row>
926             <row>
927               <entry><option>-prof</option></entry>
928               <entry>Turn on profiling</entry>
929               <entry>static</entry>
930               <entry>-</entry>
931             </row>
932             <row>
933               <entry><option>-ticky</option></entry>
934               <entry>Turn on ticky-ticky profiling</entry>
935               <entry>static</entry>
936               <entry>-</entry>
937             </row>
938           </tbody>
939         </tgroup>
940       </informaltable>
941     </sect2>
942
943     <sect2>
944       <title>Parallelism options (<xref linkend="sec-using-parallel">)</title>
945
946       <informaltable>
947         <tgroup cols=3 align=left colsep=1 rowsep=1>
948           <thead>
949             <row>
950               <entry>Flag</entry>
951               <entry>Description</entry>
952               <entry>Static/Dynamic</entry>
953               <entry>Reverse</entry>
954             </row>
955           </thead>
956           <tbody>
957             <row>
958               <entry><option>-gransim</option></entry>
959               <entry>Enable GRANSIM</entry>
960               <entry>static</entry>
961               <entry>-</entry>
962             </row>
963             <row>
964               <entry><option>-parallel</option></entry>
965               <entry>Enable Parallel Haskell</entry>
966               <entry>static</entry>
967               <entry>-</entry>
968             </row>
969             <row>
970               <entry><option>-smp</option></entry>
971               <entry>Enable SMP support</entry>
972               <entry>static</entry>
973               <entry>-</entry>
974             </row>
975           </tbody>
976         </tgroup>
977       </informaltable>
978     </sect2>
979
980     <sect2>
981       <title>C pre-processor options (<xref linkend="c-pre-processor">)</title>
982
983       <informaltable>
984         <tgroup cols=3 align=left colsep=1 rowsep=1>
985           <thead>
986             <row>
987               <entry>Flag</entry>
988               <entry>Description</entry>
989               <entry>Static/Dynamic</entry>
990               <entry>Reverse</entry>
991             </row>
992           </thead>
993           <tbody>
994             <row>
995               <entry><option>-cpp</option></entry>
996               <entry>Run the C pre-processor on Haskell source files</entry>
997               <entry>dynamic</entry>
998               <entry>-</entry>
999             </row>
1000             <row>
1001               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
1002               <entry>Define a symbol in the C pre-processor</entry>
1003               <entry>dynamic</entry>
1004               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1005             </row>
1006             <row>
1007               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
1008               <entry>Undefine a symbol in the C pre-processor</entry>
1009               <entry>dynamic</entry>
1010               <entry>-</entry>
1011             </row>
1012             <row>
1013               <entry><option>-I</option><replaceable>dir</replaceable></entry>
1014               <entry>Add <replaceable>dir</replaceable> to the
1015               directory search list for <literal>#include</literal> files</entry>
1016               <entry>static</entry>
1017               <entry>-</entry>
1018             </row>
1019           </tbody>
1020         </tgroup>
1021       </informaltable>
1022     </sect2>
1023
1024     <sect2>
1025       <title>C compiler options (<xref linkend="options-C-compiler">)</title>
1026       <informaltable>
1027         <tgroup cols=3 align=left colsep=1 rowsep=1>
1028           <thead>
1029             <row>
1030               <entry>Flag</entry>
1031               <entry>Description</entry>
1032               <entry>Static/Dynamic</entry>
1033               <entry>Reverse</entry>
1034             </row>
1035           </thead>
1036           <tbody>
1037             <row>
1038               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
1039               <entry>Include <replaceable>file</replaceable> when
1040               compiling the <filename>.hc</filename> file</entry>
1041               <entry>dynamic</entry>
1042               <entry>-</entry>
1043             </row>
1044           </tbody>
1045         </tgroup>
1046       </informaltable>
1047     </sect2>
1048
1049     <sect2>
1050       <title>Code generation options (<xref linkend="options-codegen">)</title>
1051
1052       <informaltable>
1053         <tgroup cols=3 align=left colsep=1 rowsep=1>
1054           <thead>
1055             <row>
1056               <entry>Flag</entry>
1057               <entry>Description</entry>
1058               <entry>Static/Dynamic</entry>
1059               <entry>Reverse</entry>
1060             </row>
1061           </thead>
1062           <tbody>
1063             <row>
1064               <entry><option>-fasm</option></entry>
1065               <entry>Use the native code generator</entry>
1066               <entry>dynamic</entry>
1067               <entry>-fvia-C</entry>
1068             </row>
1069             <row>
1070               <entry><option>-fvia-C</option></entry>
1071               <entry>Compile via C</entry>
1072               <entry>dynamic</entry>
1073               <entry>-fasm</entry>
1074             </row>
1075             <row>
1076               <entry><option>-fno-code</option></entry>
1077               <entry>Omit code generation</entry>
1078               <entry>static</entry>
1079               <entry>-</entry>
1080             </row>
1081           </tbody>
1082         </tgroup>
1083       </informaltable>
1084     </sect2>
1085
1086     <sect2>
1087       <title>Linking options (<xref linkend="options-linker">)</title>
1088
1089       <informaltable>
1090         <tgroup cols=3 align=left colsep=1 rowsep=1>
1091           <thead>
1092             <row>
1093               <entry>Flag</entry>
1094               <entry>Description</entry>
1095               <entry>Static/Dynamic</entry>
1096               <entry>Reverse</entry>
1097             </row>
1098           </thead>
1099           <tbody>
1100             <row>
1101               <entry><option>-dynamic</option></entry>
1102               <entry>Use dynamic Haskell libraries (if available)</entry>
1103               <entry>static</entry>
1104               <entry>-</entry>
1105             </row>
1106             <row>
1107               <entry><option>-framework</option> <replaceable>name</replaceable></entry>
1108               <entry>On Darwin/MacOS X only, link in the framework <replaceable>name</replaceable>.
1109                 This option corresponds to the <option>-framework</option> option for Apple's Linker.</entry>
1110               <entry>static</entry>
1111               <entry>-</entry>
1112             </row>
1113             <row>
1114               <entry><option>-framework-path</option> <replaceable>name</replaceable></entry>
1115               <entry>On Darwin/MacOS X only, add <replaceable>dir</replaceable> to the list of
1116                 directories searched for frameworks.
1117                 This option corresponds to the <option>-F</option> option for Apple's Linker.</entry>
1118               <entry>static</entry>
1119               <entry>-</entry>
1120             </row>
1121             <row>
1122               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1123               <entry>Link in library <replaceable>lib</replaceable></entry>
1124               <entry>static</entry>
1125               <entry>-</entry>
1126             </row>
1127             <row>
1128               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1129               <entry>Add <replaceable>dir</replaceable> to the list of
1130               directories searched for libraries</entry>
1131               <entry>static</entry>
1132               <entry>-</entry>
1133             </row>
1134             <row>
1135               <entry><option>-main-is</option></entry>
1136               <entry>Set main function</entry>
1137               <entry>static</entry>
1138               <entry>-</entry>
1139             </row>
1140             <row>
1141               <entry><option>-no-hs-main</option></entry>
1142               <entry>Don't asssume this program contains <literal>main</literal></entry>
1143               <entry>static</entry>
1144               <entry>-</entry>
1145             </row>
1146             <row>
1147               <entry><option>-no-link</option></entry>
1148               <entry>Omit linking</entry>
1149               <entry>static</entry>
1150               <entry>-</entry>
1151             </row>
1152             <row>
1153               <entry><option>-package</option> <replaceable>name</replaceable></entry>
1154               <entry>Link in package <replaceable>name</replaceable></entry>
1155               <entry>static</entry>
1156               <entry>-</entry>
1157             </row>
1158             <row>
1159               <entry><option>-split-objs</option></entry>
1160               <entry>Split objects (for libraries)</entry>
1161               <entry>static</entry>
1162               <entry>-</entry>
1163             </row>
1164             <row>
1165               <entry><option>-static</option></entry>
1166               <entry>Use static Haskell libraries</entry>
1167               <entry>static</entry>
1168               <entry>-</entry>
1169             </row>
1170           </tbody>
1171         </tgroup>
1172       </informaltable>
1173     </sect2>
1174
1175     <sect2>
1176       <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1177
1178       <informaltable>
1179         <tgroup cols=3 align=left colsep=1 rowsep=1>
1180           <thead>
1181             <row>
1182               <entry>Flag</entry>
1183               <entry>Description</entry>
1184               <entry>Static/Dynamic</entry>
1185               <entry>Reverse</entry>
1186             </row>
1187           </thead>
1188           <tbody>
1189             <row>
1190               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1191               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1192               <entry>static</entry>
1193               <entry>-</entry>
1194             </row>
1195             <row>
1196               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1197               <entry>Use <replaceable>cmd</replaceable> as the C
1198               pre-processor (with <option>-cpp</option> only)</entry>
1199               <entry>static</entry> <entry>-</entry>
1200             </row>
1201             <row>
1202               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1203               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1204               <entry>static</entry>
1205               <entry>-</entry>
1206             </row>
1207             <row>
1208               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1209               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1210               <entry>static</entry>
1211               <entry>-</entry>
1212             </row>
1213             <row>
1214               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1215               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1216               <entry>static</entry>
1217               <entry>-</entry>
1218             </row>
1219             <row>
1220               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1221               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1222               <entry>static</entry>
1223               <entry>-</entry>
1224             </row>
1225             <row>
1226               <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1227               <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1228               <entry>static</entry>
1229               <entry>-</entry>
1230             </row>
1231             <row>
1232               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1233               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1234               (with <option>-F</option> only)</entry>
1235               <entry>static</entry>
1236               <entry>-</entry>
1237             </row>
1238           </tbody>
1239         </tgroup>
1240       </informaltable>
1241       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1242       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1243       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1244       <indexterm><primary><option>-pgma</option></primary></indexterm>
1245       <indexterm><primary><option>-pgml</option></primary></indexterm>
1246       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1247       <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1248       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1249
1250     </sect2>
1251
1252     <sect2>
1253       <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1254
1255       <informaltable>
1256         <tgroup cols=3 align=left colsep=1 rowsep=1>
1257           <thead>
1258             <row>
1259               <entry>Flag</entry>
1260               <entry>Description</entry>
1261               <entry>Static/Dynamic</entry>
1262               <entry>Reverse</entry>
1263             </row>
1264           </thead>
1265           <tbody>
1266             <row>
1267               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1268               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1269               <entry>dynamic</entry>
1270               <entry>-</entry>
1271             </row>
1272             <row>
1273               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1274               <entry>pass <replaceable>option</replaceable> to cpp (with
1275               <option>-cpp</option> only)</entry>
1276               <entry>dynamic</entry>
1277               <entry>-</entry>
1278             </row>
1279             <row>
1280               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1281               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1282               <entry>dynamic</entry>
1283               <entry>-</entry>
1284             </row>
1285             <row>
1286               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1287               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1288               <entry>dynamic</entry>
1289               <entry>-</entry>
1290             </row>
1291             <row>
1292               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1293               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1294               <entry>static</entry>
1295               <entry>-</entry>
1296             </row>
1297             <row>
1298               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1299               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1300               <entry>static</entry>
1301               <entry>-</entry>
1302             </row>
1303             <row>
1304               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1305               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1306               <entry>static</entry>
1307               <entry>-</entry>
1308             </row>
1309           </tbody>
1310         </tgroup>
1311       </informaltable>
1312     </sect2>
1313
1314     <sect2>
1315       <title>Platform-specific options (<xref linkend="options-platform">)</title>
1316       
1317       <informaltable>
1318         <tgroup cols=3 align=left colsep=1 rowsep=1>
1319           <thead>
1320             <row>
1321               <entry>Flag</entry>
1322               <entry>Description</entry>
1323               <entry>Static/Dynamic</entry>
1324               <entry>Reverse</entry>
1325             </row>
1326           </thead>
1327           <tbody>
1328             <row>
1329               <entry><option>-mv8</option></entry>
1330               <entry>(SPARC only) enable version 8 support</entry>
1331               <entry>static</entry>
1332               <entry>-</entry>
1333             </row>
1334             <row>
1335               <entry><option>-monly-[32]-regs</option></entry>
1336               <entry>(x86 only) give some registers back to the C compiler</entry>
1337               <entry>dynamic</entry>
1338               <entry>-</entry>
1339             </row>
1340           </tbody>
1341         </tgroup>
1342       </informaltable>
1343     </sect2>
1344
1345          
1346     <sect2>
1347       <title>External core file options (<xref linkend="ext-core">)</title>
1348
1349       <informaltable>
1350         <tgroup cols=3 align=left colsep=1 rowsep=1>
1351           <thead>
1352             <row>
1353               <entry>Flag</entry>
1354               <entry>Description</entry>
1355               <entry>Static/Dynamic</entry>
1356               <entry>Reverse</entry>
1357             </row>
1358           </thead>
1359           <tbody>
1360             <row>
1361               <entry><option>-fext-core</option></entry>
1362               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1363               <entry>static</entry>
1364               <entry>-</entry>
1365             </row>
1366           </tbody>
1367         </tgroup>
1368       </informaltable>
1369     </sect2>
1370         
1371
1372     <sect2>
1373       <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1374
1375       <informaltable>
1376         <tgroup cols=3 align=left colsep=1 rowsep=1>
1377           <thead>
1378             <row>
1379               <entry>Flag</entry>
1380               <entry>Description</entry>
1381               <entry>Static/Dynamic</entry>
1382               <entry>Reverse</entry>
1383             </row>
1384           </thead>
1385           <tbody>
1386             <row>
1387               <entry><option>-dcore-lint</option></entry>
1388               <entry>Turn on internal sanity checking</entry>
1389               <entry>dynamic</entry>
1390               <entry>-</entry>
1391             </row>
1392             <row>
1393               <entry><option>-ddump-absC</option></entry>
1394               <entry>Dump abstract C</entry>
1395               <entry>dynamic</entry>
1396               <entry>-</entry>
1397             </row>
1398             <row>
1399               <entry><option>-ddump-asm</option></entry>
1400               <entry>Dump assembly</entry>
1401               <entry>dynamic</entry>
1402               <entry>-</entry>
1403             </row>
1404             <row>
1405               <entry><option>-ddump-bcos</option></entry>
1406               <entry>Dump interpreter byte code</entry>
1407               <entry>dynamic</entry>
1408               <entry>-</entry>
1409             </row>
1410             <row>
1411               <entry><option>-ddump-cpranal</option></entry>
1412               <entry>Dump output from CPR analysis</entry>
1413               <entry>dynamic</entry>
1414               <entry>-</entry>
1415             </row>
1416             <row>
1417               <entry><option>-ddump-cse</option></entry>
1418               <entry>Dump CSE output</entry>
1419               <entry>dynamic</entry>
1420               <entry>-</entry>
1421             </row>
1422             <row>
1423               <entry><option>-ddump-deriv</option></entry>
1424               <entry>Dump deriving output</entry>
1425               <entry>dynamic</entry>
1426               <entry>-</entry>
1427             </row>
1428             <row>
1429               <entry><option>-ddump-ds</option></entry>
1430               <entry>Dump desugarer output</entry>
1431               <entry>dynamic</entry>
1432               <entry>-</entry>
1433             </row>
1434             <row>
1435               <entry><option>-ddump-flatC</option></entry>
1436               <entry>Dump &ldquo;flat&rdquo; C</entry>
1437               <entry>dynamic</entry>
1438               <entry>-</entry>
1439             </row>
1440             <row>
1441               <entry><option>-ddump-foreign</option></entry>
1442               <entry>Dump <literal>foreign export</literal> stubs</entry>
1443               <entry>dynamic</entry>
1444               <entry>-</entry>
1445             </row>
1446             <row>
1447               <entry><option>-ddump-inlinings</option></entry>
1448               <entry>Dump inlining info</entry>
1449               <entry>dynamic</entry>
1450               <entry>-</entry>
1451             </row>
1452             <row>
1453               <entry><option>-ddump-occur-anal</option></entry>
1454               <entry>Dump occurrence analysis output</entry>
1455               <entry>dynamic</entry>
1456               <entry>-</entry>
1457             </row>
1458             <row>
1459               <entry><option>-ddump-parsed</option></entry>
1460               <entry>Dump parse tree</entry>
1461               <entry>dynamic</entry>
1462               <entry>-</entry>
1463             </row>
1464             <row>
1465               <entry><option>-ddump-realC</option></entry>
1466               <entry>Dump &ldquo;real&rdquo; C</entry>
1467               <entry>dynamic</entry>
1468               <entry>-</entry>
1469             </row>
1470             <row>
1471               <entry><option>-ddump-rn</option></entry>
1472               <entry>Dump renamer output</entry>
1473               <entry>dynamic</entry>
1474               <entry>-</entry>
1475             </row>
1476             <row>
1477               <entry><option>-ddump-rules</option></entry>
1478               <entry>Dump rules</entry>
1479               <entry>dynamic</entry>
1480               <entry>-</entry>
1481             </row>
1482             <row>
1483               <entry><option>-ddump-sat</option></entry>
1484               <entry>Dump saturated output</entry>
1485               <entry>dynamic</entry>
1486               <entry>-</entry>
1487             </row>
1488             <row>
1489               <entry><option>-ddump-simpl</option></entry>
1490               <entry>Dump final simplifier output</entry>
1491               <entry>dynamic</entry>
1492               <entry>-</entry>
1493             </row>
1494             <row>
1495               <entry><option>-ddump-simpl-iterations</option></entry>
1496               <entry>Dump output from each simplifier iteration</entry>
1497               <entry>dynamic</entry>
1498               <entry>-</entry>
1499             </row>
1500             <row>
1501               <entry><option>-ddump-spec</option></entry>
1502               <entry>Dump specialiser output</entry>
1503               <entry>dynamic</entry>
1504               <entry>-</entry>
1505             </row>
1506             <row>
1507               <entry><option>-ddump-stg</option></entry>
1508               <entry>Dump final STG</entry>
1509               <entry>dynamic</entry>
1510               <entry>-</entry>
1511             </row>
1512             <row>
1513               <entry><option>-ddump-stranal</option></entry>
1514               <entry>Dump strictness analyser output</entry>
1515               <entry>dynamic</entry>
1516               <entry>-</entry>
1517             </row>
1518             <row>
1519               <entry><option>-ddump-tc</option></entry>
1520               <entry>Dump typechecker output</entry>
1521               <entry>dynamic</entry>
1522               <entry>-</entry>
1523             </row>
1524             <row>
1525               <entry><option>-ddump-types</option></entry>
1526               <entry>Dump type signatures</entry>
1527               <entry>dynamic</entry>
1528               <entry>-</entry>
1529             </row>
1530             <row>
1531               <entry><option>-ddump-usagesp</option></entry>
1532               <entry>Dump UsageSP analysis output</entry>
1533               <entry>dynamic</entry>
1534               <entry>-</entry>
1535             </row>
1536             <row>
1537               <entry><option>-ddump-worker-wrapper</option></entry>
1538               <entry>Dump worker-wrapper output</entry>
1539               <entry>dynamic</entry>
1540               <entry>-</entry>
1541             </row>
1542             <row>
1543               <entry><option>-ddump-rn-trace</option></entry>
1544               <entry>Trace renamer</entry>
1545               <entry>dynamic</entry>
1546               <entry>-</entry>
1547             </row>
1548             <row>
1549               <entry><option>-ddump-rn-stats</option></entry>
1550               <entry>Renamer stats</entry>
1551               <entry>dynamic</entry>
1552               <entry>-</entry>
1553             </row>
1554             <row>
1555               <entry><option>-ddump-stix</option></entry>
1556               <entry>Native code generator intermediate form</entry>
1557               <entry>dynamic</entry>
1558               <entry>-</entry>
1559             </row>
1560             <row>
1561               <entry><option>-ddump-simpl-stats</option></entry>
1562               <entry>Dump simplifier stats</entry>
1563               <entry>dynamic</entry>
1564               <entry>-</entry>
1565             </row>
1566             <row>
1567               <entry><option>-dppr-debug</option></entry>
1568               <entry>Turn on debug printing (more verbose)</entry>
1569               <entry>static</entry>
1570               <entry>-</entry>
1571             </row>
1572             <row>
1573               <entry><option>-dppr-noprags</option></entry>
1574               <entry>Don't output pragma info in dumps</entry>
1575               <entry>static</entry>
1576               <entry>-</entry>
1577             </row>
1578             <row>
1579               <entry><option>-dppr-user-length</option></entry>
1580               <entry>Set the depth for printing expressions in error msgs</entry>
1581               <entry>static</entry>
1582               <entry>-</entry>
1583             </row>
1584             <row>
1585               <entry><option>-dsource-stats</option></entry>
1586               <entry>Dump haskell source stats</entry>
1587               <entry>dynamic</entry>
1588               <entry>-</entry>
1589             </row>
1590             <row>
1591               <entry><option>-dstg-lint</option></entry>
1592               <entry>STG pass sanity checking</entry>
1593               <entry>dynamic</entry>
1594               <entry>-</entry>
1595             </row>
1596             <row>
1597               <entry><option>-dstg-stats</option></entry>
1598               <entry>Dump STG stats</entry>
1599               <entry>dynamic</entry>
1600               <entry>-</entry>
1601             </row>
1602             <row>
1603               <entry><option>-dusagesp-lint</option></entry>
1604               <entry>UsageSP sanity checker</entry>
1605               <entry>dynamic</entry>
1606               <entry>-</entry>
1607             </row>
1608             <row>
1609               <entry><option>-dverbose-core2core</option></entry>
1610               <entry>Show output from each core-to-core pass</entry>
1611               <entry>dynamic</entry>
1612               <entry>-</entry>
1613             </row>
1614             <row>
1615               <entry><option>-dverbose-stg2stg</option></entry>
1616               <entry>Show output from each STG-to-STG pass</entry>
1617               <entry>dynamic</entry>
1618               <entry>-</entry>
1619             </row>
1620             <row>
1621               <entry><option>-unreg</option></entry>
1622               <entry>Enable unregisterised compilation</entry>
1623               <entry>static</entry>
1624               <entry>-</entry>
1625             </row>
1626           </tbody>
1627         </tgroup>
1628       </informaltable>
1629     </sect2>
1630       
1631     <sect2>
1632       <title>Misc compiler options</title>
1633
1634       <informaltable>
1635         <tgroup cols=3 align=left colsep=1 rowsep=1>
1636           <thead>
1637             <row>
1638               <entry>Flag</entry>
1639               <entry>Description</entry>
1640               <entry>Static/Dynamic</entry>
1641               <entry>Reverse</entry>
1642             </row>
1643           </thead>
1644           <tbody>
1645             <row>
1646               <entry><option>-femit-extern-decls</option></entry>
1647               <entry>???</entry>
1648               <entry>static</entry>
1649               <entry>-</entry>
1650             </row>
1651             <row>
1652               <entry><option>-fglobalise-toplev-names</option></entry>
1653               <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1654               <entry>static</entry>
1655               <entry>-</entry>
1656             </row>
1657             <row>
1658               <entry><option>-fno-hi-version-check</option></entry>
1659               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1660               <entry>static</entry>
1661               <entry>-</entry>
1662             </row>
1663             <row>
1664               <entry><option>-dno-black-holing</option></entry>
1665               <entry>Turn off black holing (probably doesn't work)</entry>
1666               <entry>static</entry>
1667               <entry>-</entry>
1668             </row>
1669             <row>
1670               <entry><option>-fno-method-sharing</option></entry>
1671               <entry>Don't share specialisations of overloaded functions</entry>
1672               <entry>static</entry>
1673               <entry>-</entry>
1674             </row>
1675             <row>
1676               <entry><option>-fno-prune-decls</option></entry>
1677               <entry>Renamer: don't prune declarations</entry>
1678               <entry>static</entry>
1679               <entry>-</entry>
1680             </row>
1681             <row>
1682               <entry><option>-fhistory-size</option></entry>
1683               <entry>Set simplification history size</entry>
1684               <entry>static</entry>
1685               <entry>-</entry>
1686             </row>
1687             <row>
1688               <entry><option>-funregisterised</option></entry>
1689               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1690               <entry>static</entry>
1691               <entry>-</entry>
1692             </row>
1693             <row>
1694               <entry><option>-fno-asm-mangling</option></entry>
1695               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1696               <entry>static</entry>
1697               <entry>-</entry>
1698             </row>
1699           </tbody>
1700         </tgroup>
1701       </informaltable>
1702     </sect2>
1703   </sect1>
1704
1705
1706 <!--
1707 Still to document:
1708
1709 Misc:
1710   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1711   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
1712
1713   -Bdir
1714 -->
1715
1716 <!-- Emacs stuff:
1717      ;;; Local Variables: ***
1718      ;;; mode: sgml ***
1719      ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***
1720      ;;; End: ***
1721  -->