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