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