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