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