[project @ 2001-10-29 13:42:52 by simonmar]
[ghc-hetmet.git] / ghc / docs / users_guide / flags.sgml
1   <sect1 id="flag-reference">
2     <title>Flag reference</title>
3
4     <para>This section is a quick-reference for GHC's command-line
5     flags.  For each flag, we also list its static/dynamic status (see
6     <xref linkend="static-dynamic-flags">), and the flag's opposite
7     (if available).</para>
8
9     <sect2>
10       <title>Help and verbosity options (<xref linkend="options-help">)</title>
11
12       <informaltable>
13         <tgroup cols=3 align=left colsep=1 rowsep=1>
14           <thead>
15             <row>
16               <entry>Flag</entry>
17               <entry>Description</entry>
18               <entry>Static/Dynamic</entry>
19               <entry>Reverse</entry>
20             </row>
21           </thead>
22           <tbody>
23             <row>
24               <entry><option>-?</option></entry>
25               <entry>help</entry>
26               <entry>static</entry>
27               <entry>-</entry>
28             </row>
29             <row>
30               <entry><option>-help</option></entry>
31               <entry>help</entry>
32               <entry>static</entry>
33               <entry>-</entry>
34             </row>
35             <row>
36               <entry><option>-v</option></entry>
37               <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
38               <entry>dynamic</entry>
39               <entry>-</entry>
40             </row>
41             <row>
42               <entry><option>-v</option><replaceable>n</replaceable></entry>
43               <entry>set verbosity level</entry>
44               <entry>dynamic</entry>
45               <entry>-</entry>
46             </row>
47             <row>
48               <entry><option>--version</option></entry>
49               <entry>display GHC version</entry>
50               <entry>static</entry>
51               <entry>-</entry>
52             </row>
53             <row>
54               <entry><option>--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>--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>-fignore-asserts</option></entry>
440               <entry>Ignore assertions</entry>
441               <entry>dynamic</entry>
442               <entry><option>-fno-ignore-asserts</option></entry>
443             </row>
444             <row>
445               <entry><option>-fno-implicit-prelude</option></entry>
446               <entry>Don't implicitly <literal>import Prelude</literal></entry>
447               <entry>dynamic</entry>
448               <entry>-</entry>
449             </row>
450             <row>
451               <entry><option>-fno-monomorphism-restriction</option></entry>
452               <entry>Disable the monomorphism restriction</entry>
453               <entry>dynamic</entry>
454               <entry><option>-</option></entry>
455             </row>
456             <row>
457               <entry><option>-firrefutable-tuples</option></entry>
458               <entry>Make tuple pattern matching irrefutable</entry>
459               <entry>dynamic</entry>
460               <entry><option>-fno-irrefutable-tuples</option></entry>
461             </row>
462             <row>
463               <entry><option>-fcontext-stack</option><replaceable>n</replaceable></entry>
464               <entry>set the limit for context reduction</entry>
465               <entry>dynamic</entry>
466               <entry><option>-</option></entry>
467             </row>
468           </tbody>
469         </tgroup>
470       </informaltable>
471     </sect2>
472
473     <sect2>
474       <title>Warnings (<xref linkend="options-sanity">)</title>
475       
476     <informaltable>
477       <tgroup cols=3 align=left colsep=1 rowsep=1>
478         <thead>
479           <row>
480             <entry>Flag</entry>
481             <entry>Description</entry>
482             <entry>Static/Dynamic</entry>
483             <entry>Reverse</entry>
484           </row>
485         </thead>
486         <tbody>
487           <row>
488             <entry><option>-W</option></entry>
489             <entry>enable normal warnings</entry>
490             <entry>dynamic</entry>
491             <entry><option>-w</option></entry>
492           </row>
493           <row>
494             <entry><option>-w</option></entry>
495             <entry>disable all warnings</entry>
496             <entry>dynamic</entry>
497             <entry>-</entry>
498           </row>
499           <row>
500             <entry><option>-Wall</option></entry>
501             <entry>enable all warnings</entry>
502             <entry>dynamic</entry>
503             <entry><option>-w</option></entry>
504           </row>
505
506           <row>
507             <entry><option>-fwarn-deprecations</option></entry>
508             <entry>warn about uses of functions & types that are deprecated</entry>
509             <entry>dynamic</entry>
510             <entry><option>-fno-warn-deprecations</option></entry>
511           </row>
512
513           <row>
514             <entry><option>-fwarn-duplicate-exports</option></entry>
515             <entry>warn when an entity is exported multiple times</entry>
516             <entry>dynamic</entry>
517             <entry><option>-fno-warn-duplicate-exports</option></entry>
518           </row>
519
520           <row>
521             <entry><option>-fwarn-hi-shadowing</option></entry>
522             <entry>warn when a <literal>.hi</literal> file in the
523             current directory shadows a library</entry>
524             <entry>dynamic</entry>
525             <entry><option>-fno-warn-hi-shadowing</option></entry>
526           </row>
527
528           <row>
529             <entry><option>-fwarn-incomplete-patterns</option></entry>
530             <entry>warn when a pattern match could fail</entry>
531             <entry>dynamic</entry>
532             <entry><option>-fno-warn-incomplete-patterns</option></entry>
533           </row>
534
535           <row>
536             <entry><option>-fwarn-misc</option></entry>
537             <entry>enable miscellaneous warnings</entry>
538             <entry>dynamic</entry>
539             <entry><option>-fno-warn-misc</option></entry>
540           </row>
541
542           <row>
543             <entry><option>-fwarn-missing-fields</option></entry>
544             <entry>warn when fields of a record are uninitialised</entry>
545             <entry>dynamic</entry>
546             <entry><option>-fno-warn-missing-fields</option></entry>
547           </row>
548
549           <row>
550             <entry><option>-fwarn-missing-methods</option></entry>
551             <entry>warn when class methods are undefined</entry>
552             <entry>dynamic</entry>
553             <entry><option>-fno-warn-missing-methods</option></entry>
554           </row>
555
556           <row>
557             <entry><option>-fwarn-missing-signatures</option></entry>
558             <entry>warn about top-level functions without signatures</entry>
559             <entry>dynamic</entry>
560             <entry><option>-fno-warn-missing-signatures</option></entry>
561           </row>
562
563           <row>
564             <entry><option>-fwarn-name-shadowing</option></entry>
565             <entry>warn when names are shadowed</entry>
566             <entry>dynamic</entry>
567             <entry><option>-fno-warn-name-shadowing</option></entry>
568           </row>
569
570           <row>
571             <entry><option>-fwarn-overlapping-patterns</option></entry>
572             <entry>warn about overlapping patterns</entry>
573             <entry>dynamic</entry>
574             <entry><option>-fno-warn-overlapping-patterns</option></entry>
575           </row>
576
577           <row>
578             <entry><option>-fwarn-simple-patterns</option></entry>
579             <entry>warn about lambda-patterns that can fail</entry>
580             <entry>dynamic</entry>
581             <entry><option>-fno-warn-simple-patterns</option></entry>
582           </row>
583
584           <row>
585             <entry><option>-fwarn-type-defaults</option></entry>
586             <entry>warn when defaulting happens</entry>
587             <entry>dynamic</entry>
588             <entry><option>-fno-warn-type-defaults</option></entry>
589           </row>
590
591           <row>
592             <entry><option>-fwarn-unused-binds</option></entry>
593             <entry>warn about bindings that are unused</entry>
594             <entry>dynamic</entry>
595             <entry><option>-fno-warn-unused-binds</option></entry>
596           </row>
597
598           <row>
599             <entry><option>-fwarn-unused-imports</option></entry>
600             <entry>warn about unnecessary imports</entry>
601             <entry>dynamic</entry>
602             <entry><option>-fno-warn-unused-imports</option></entry>
603           </row>
604
605           <row>
606             <entry><option>-fwarn-unused-matches</option></entry>
607             <entry>warn about variables in patterns that aren't used</entry>
608             <entry>dynamic</entry>
609             <entry><option>-fno-warn-unused-matches</option></entry>
610           </row>
611
612           </tbody>
613         </tgroup>
614       </informaltable>
615
616     </sect2>
617     <sect2>
618       <title>Optimisation levels (<xref linkend="options-optimise">)</title>
619
620       <informaltable>
621         <tgroup cols=3 align=left colsep=1 rowsep=1>
622           <thead>
623             <row>
624               <entry>Flag</entry>
625               <entry>Description</entry>
626               <entry>Static/Dynamic</entry>
627               <entry>Reverse</entry>
628             </row>
629           </thead>
630           <tbody>
631             <row>
632               <entry><option>-O</option></entry>
633               <entry>Enable default optimisation (level 1)</entry>
634               <entry>static</entry>
635               <entry><option>-O0</option></entry>
636             </row>
637             <row>
638               <entry><option>-O</option><replaceable>n</replaceable></entry>
639               <entry>Set optimisation level <replaceable>n</replaceable></entry>
640               <entry>static</entry>
641               <entry><option>-O0</option></entry>
642             </row>
643             <row>
644               <entry><option>-O2-for-C</option></entry>
645               <entry>Run <command>gcc</command> with <option>-O2</option></entry>
646               <entry>static</entry>
647               <entry>-</entry>
648             </row>
649           </tbody>
650         </tgroup>
651       </informaltable>
652               
653     </sect2>
654     <sect2>
655       <title>Individual optimisations (<xref linkend="options-f">)</title>
656
657       <informaltable>
658         <tgroup cols=3 align=left colsep=1 rowsep=1>
659           <thead>
660             <row>
661               <entry>Flag</entry>
662               <entry>Description</entry>
663               <entry>Static/Dynamic</entry>
664               <entry>Reverse</entry>
665             </row>
666           </thead>
667           <tbody>
668             <row>
669               <entry><option>-fall-strict</option></entry>
670               <entry>Make everything strict</entry>
671               <entry>dynamic</entry>
672               <entry><option>-fno-all-strict</option></entry>
673             </row>
674
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>-split-objs</option></entry>
1096               <entry>Split objects (for libraries)</entry>
1097               <entry>static</entry>
1098               <entry>-</entry>
1099             </row>
1100             <row>
1101               <entry><option>-static</option></entry>
1102               <entry>Use static Haskell libraries</entry>
1103               <entry>static</entry>
1104               <entry>-</entry>
1105             </row>
1106             <row>
1107               <entry><option>-no-hs-main</option></entry>
1108               <entry>Don't asssume this program contains <literal>main</literal></entry>
1109               <entry>static</entry>
1110               <entry>-</entry>
1111             </row>
1112           </tbody>
1113         </tgroup>
1114       </informaltable>
1115     </sect2>
1116
1117     <sect2>
1118       <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1119
1120       <informaltable>
1121         <tgroup cols=3 align=left colsep=1 rowsep=1>
1122           <thead>
1123             <row>
1124               <entry>Flag</entry>
1125               <entry>Description</entry>
1126               <entry>Static/Dynamic</entry>
1127               <entry>Reverse</entry>
1128             </row>
1129           </thead>
1130           <tbody>
1131             <row>
1132               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1133               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1134               <entry>static</entry>
1135               <entry>-</entry>
1136             </row>
1137             <row>
1138               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1139               <entry>Use <replaceable>cmd</replaceable> as the C
1140               pre-processor (with <option>-cpp</option> only)</entry>
1141               <entry>static</entry> <entry>-</entry>
1142             </row>
1143             <row>
1144               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1145               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1146               <entry>static</entry>
1147               <entry>-</entry>
1148             </row>
1149             <row>
1150               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1151               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1152               <entry>static</entry>
1153               <entry>-</entry>
1154             </row>
1155             <row>
1156               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1157               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1158               <entry>static</entry>
1159               <entry>-</entry>
1160             </row>
1161             <row>
1162               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1163               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1164               <entry>static</entry>
1165               <entry>-</entry>
1166             </row>
1167             <row>
1168               <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1169               <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1170               <entry>static</entry>
1171               <entry>-</entry>
1172             </row>
1173             <row>
1174               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1175               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1176               (with <option>-F</option> only)</entry>
1177               <entry>static</entry>
1178               <entry>-</entry>
1179             </row>
1180           </tbody>
1181         </tgroup>
1182       </informaltable>
1183       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1184       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1185       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1186       <indexterm><primary><option>-pgma</option></primary></indexterm>
1187       <indexterm><primary><option>-pgml</option></primary></indexterm>
1188       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1189       <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1190       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1191
1192     </sect2>
1193
1194     <sect2>
1195       <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1196
1197       <informaltable>
1198         <tgroup cols=3 align=left colsep=1 rowsep=1>
1199           <thead>
1200             <row>
1201               <entry>Flag</entry>
1202               <entry>Description</entry>
1203               <entry>Static/Dynamic</entry>
1204               <entry>Reverse</entry>
1205             </row>
1206           </thead>
1207           <tbody>
1208             <row>
1209               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1210               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1211               <entry>dynamic</entry>
1212               <entry>-</entry>
1213             </row>
1214             <row>
1215               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1216               <entry>pass <replaceable>option</replaceable> to cpp (with
1217               <option>-cpp</option> only)</entry>
1218               <entry>dynamic</entry>
1219               <entry>-</entry>
1220             </row>
1221             <row>
1222               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1223               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1224               <entry>dynamic</entry>
1225               <entry>-</entry>
1226             </row>
1227             <row>
1228               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1229               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1230               <entry>dynamic</entry>
1231               <entry>-</entry>
1232             </row>
1233             <row>
1234               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1235               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1236               <entry>static</entry>
1237               <entry>-</entry>
1238             </row>
1239             <row>
1240               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1241               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1242               <entry>static</entry>
1243               <entry>-</entry>
1244             </row>
1245             <row>
1246               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1247               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1248               <entry>static</entry>
1249               <entry>-</entry>
1250             </row>
1251           </tbody>
1252         </tgroup>
1253       </informaltable>
1254     </sect2>
1255
1256     <sect2>
1257       <title>Platform-specific options (<xref linkend="options-platform">)</title>
1258       
1259       <informaltable>
1260         <tgroup cols=3 align=left colsep=1 rowsep=1>
1261           <thead>
1262             <row>
1263               <entry>Flag</entry>
1264               <entry>Description</entry>
1265               <entry>Static/Dynamic</entry>
1266               <entry>Reverse</entry>
1267             </row>
1268           </thead>
1269           <tbody>
1270             <row>
1271               <entry><option>-mv8</option></entry>
1272               <entry>(SPARC only) enable version 8 support</entry>
1273               <entry>static</entry>
1274               <entry>-</entry>
1275             </row>
1276             <row>
1277               <entry><option>-monly-[32]-regs</option></entry>
1278               <entry>(x86 only) give some registers back to the C compiler</entry>
1279               <entry>dynamic</entry>
1280               <entry>-</entry>
1281             </row>
1282           </tbody>
1283         </tgroup>
1284       </informaltable>
1285     </sect2>
1286
1287          
1288     <sect2>
1289       <title>External core file options (<xref linkend="ext-core">)</title>
1290
1291       <informaltable>
1292         <tgroup cols=3 align=left colsep=1 rowsep=1>
1293           <thead>
1294             <row>
1295               <entry>Flag</entry>
1296               <entry>Description</entry>
1297               <entry>Static/Dynamic</entry>
1298               <entry>Reverse</entry>
1299             </row>
1300           </thead>
1301           <tbody>
1302             <row>
1303               <entry><option>-fext-core</option></entry>
1304               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1305               <entry>static</entry>
1306               <entry>-</entry>
1307             </row>
1308           </tbody>
1309         </tgroup>
1310       </informaltable>
1311     </sect2>
1312         
1313
1314     <sect2>
1315       <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1316
1317       <informaltable>
1318         <tgroup cols=3 align=left colsep=1 rowsep=1>
1319           <thead>
1320             <row>
1321               <entry>Flag</entry>
1322               <entry>Description</entry>
1323               <entry>Static/Dynamic</entry>
1324               <entry>Reverse</entry>
1325             </row>
1326           </thead>
1327           <tbody>
1328             <row>
1329               <entry><option>-dcore-lint</option></entry>
1330               <entry>Turn on internal sanity checking</entry>
1331               <entry>dynamic</entry>
1332               <entry>-</entry>
1333             </row>
1334             <row>
1335               <entry><option>-ddump-absC</option></entry>
1336               <entry>Dump abstract C</entry>
1337               <entry>dynamic</entry>
1338               <entry>-</entry>
1339             </row>
1340             <row>
1341               <entry><option>-ddump-asm</option></entry>
1342               <entry>Dump assembly</entry>
1343               <entry>dynamic</entry>
1344               <entry>-</entry>
1345             </row>
1346             <row>
1347               <entry><option>-ddump-bcos</option></entry>
1348               <entry>Dump interpreter byte code</entry>
1349               <entry>dynamic</entry>
1350               <entry>-</entry>
1351             </row>
1352             <row>
1353               <entry><option>-ddump-cpranal</option></entry>
1354               <entry>Dump output from CPR analysis</entry>
1355               <entry>dynamic</entry>
1356               <entry>-</entry>
1357             </row>
1358             <row>
1359               <entry><option>-ddump-cse</option></entry>
1360               <entry>Dump CSE output</entry>
1361               <entry>dynamic</entry>
1362               <entry>-</entry>
1363             </row>
1364             <row>
1365               <entry><option>-ddump-deriv</option></entry>
1366               <entry>Dump deriving output</entry>
1367               <entry>dynamic</entry>
1368               <entry>-</entry>
1369             </row>
1370             <row>
1371               <entry><option>-ddump-ds</option></entry>
1372               <entry>Dump desugarer output</entry>
1373               <entry>dynamic</entry>
1374               <entry>-</entry>
1375             </row>
1376             <row>
1377               <entry><option>-ddump-flatC</option></entry>
1378               <entry>Dump &ldquo;flat&rdquo; C</entry>
1379               <entry>dynamic</entry>
1380               <entry>-</entry>
1381             </row>
1382             <row>
1383               <entry><option>-ddump-foreign</option></entry>
1384               <entry>Dump <literal>foreign export</literal> stubs</entry>
1385               <entry>dynamic</entry>
1386               <entry>-</entry>
1387             </row>
1388             <row>
1389               <entry><option>-ddump-inlinings</option></entry>
1390               <entry>Dump inlining info</entry>
1391               <entry>dynamic</entry>
1392               <entry>-</entry>
1393             </row>
1394             <row>
1395               <entry><option>-ddump-occur-anal</option></entry>
1396               <entry>Dump occurrence analysis output</entry>
1397               <entry>dynamic</entry>
1398               <entry>-</entry>
1399             </row>
1400             <row>
1401               <entry><option>-ddump-parsed</option></entry>
1402               <entry>Dump parse tree</entry>
1403               <entry>dynamic</entry>
1404               <entry>-</entry>
1405             </row>
1406             <row>
1407               <entry><option>-ddump-realC</option></entry>
1408               <entry>Dump &ldquo;real&rdquo; C</entry>
1409               <entry>dynamic</entry>
1410               <entry>-</entry>
1411             </row>
1412             <row>
1413               <entry><option>-ddump-rn</option></entry>
1414               <entry>Dump renamer output</entry>
1415               <entry>dynamic</entry>
1416               <entry>-</entry>
1417             </row>
1418             <row>
1419               <entry><option>-ddump-rules</option></entry>
1420               <entry>Dump rules</entry>
1421               <entry>dynamic</entry>
1422               <entry>-</entry>
1423             </row>
1424             <row>
1425               <entry><option>-ddump-sat</option></entry>
1426               <entry>Dump saturated output</entry>
1427               <entry>dynamic</entry>
1428               <entry>-</entry>
1429             </row>
1430             <row>
1431               <entry><option>-ddump-simpl</option></entry>
1432               <entry>Dump final simplifier output</entry>
1433               <entry>dynamic</entry>
1434               <entry>-</entry>
1435             </row>
1436             <row>
1437               <entry><option>-ddump-simpl-iterations</option></entry>
1438               <entry>Dump output from each simplifier iteration</entry>
1439               <entry>dynamic</entry>
1440               <entry>-</entry>
1441             </row>
1442             <row>
1443               <entry><option>-ddump-spec</option></entry>
1444               <entry>Dump specialiser output</entry>
1445               <entry>dynamic</entry>
1446               <entry>-</entry>
1447             </row>
1448             <row>
1449               <entry><option>-ddump-stg</option></entry>
1450               <entry>Dump final STG</entry>
1451               <entry>dynamic</entry>
1452               <entry>-</entry>
1453             </row>
1454             <row>
1455               <entry><option>-ddump-stranal</option></entry>
1456               <entry>Dump strictness analyser output</entry>
1457               <entry>dynamic</entry>
1458               <entry>-</entry>
1459             </row>
1460             <row>
1461               <entry><option>-ddump-tc</option></entry>
1462               <entry>Dump typechecker output</entry>
1463               <entry>dynamic</entry>
1464               <entry>-</entry>
1465             </row>
1466             <row>
1467               <entry><option>-ddump-types</option></entry>
1468               <entry>Dump type signatures</entry>
1469               <entry>dynamic</entry>
1470               <entry>-</entry>
1471             </row>
1472             <row>
1473               <entry><option>-ddump-usagesp</option></entry>
1474               <entry>Dump UsageSP analysis output</entry>
1475               <entry>dynamic</entry>
1476               <entry>-</entry>
1477             </row>
1478             <row>
1479               <entry><option>-ddump-worker-wrapper</option></entry>
1480               <entry>Dump worker-wrapper output</entry>
1481               <entry>dynamic</entry>
1482               <entry>-</entry>
1483             </row>
1484             <row>
1485               <entry><option>-ddump-rn-trace</option></entry>
1486               <entry>Trace renamer</entry>
1487               <entry>dynamic</entry>
1488               <entry>-</entry>
1489             </row>
1490             <row>
1491               <entry><option>-ddump-rn-stats</option></entry>
1492               <entry>Renamer stats</entry>
1493               <entry>dynamic</entry>
1494               <entry>-</entry>
1495             </row>
1496             <row>
1497               <entry><option>-ddump-stix</option></entry>
1498               <entry>Native code generator intermediate form</entry>
1499               <entry>dynamic</entry>
1500               <entry>-</entry>
1501             </row>
1502             <row>
1503               <entry><option>-ddump-simpl-stats</option></entry>
1504               <entry>Dump simplifier stats</entry>
1505               <entry>dynamic</entry>
1506               <entry>-</entry>
1507             </row>
1508             <row>
1509               <entry><option>-dppr-debug</option></entry>
1510               <entry>Turn on debug printing (more verbose)</entry>
1511               <entry>static</entry>
1512               <entry>-</entry>
1513             </row>
1514             <row>
1515               <entry><option>-dppr-noprags</option></entry>
1516               <entry>Don't output pragma info in dumps</entry>
1517               <entry>static</entry>
1518               <entry>-</entry>
1519             </row>
1520             <row>
1521               <entry><option>-dppr-user-length</option></entry>
1522               <entry>Set the depth for printing expressions in error msgs</entry>
1523               <entry>static</entry>
1524               <entry>-</entry>
1525             </row>
1526             <row>
1527               <entry><option>-dsource-stats</option></entry>
1528               <entry>Dump haskell source stats</entry>
1529               <entry>dynamic</entry>
1530               <entry>-</entry>
1531             </row>
1532             <row>
1533               <entry><option>-dstg-lint</option></entry>
1534               <entry>STG pass sanity checking</entry>
1535               <entry>dynamic</entry>
1536               <entry>-</entry>
1537             </row>
1538             <row>
1539               <entry><option>-dstg-stats</option></entry>
1540               <entry>Dump STG stats</entry>
1541               <entry>dynamic</entry>
1542               <entry>-</entry>
1543             </row>
1544             <row>
1545               <entry><option>-dusagesp-lint</option></entry>
1546               <entry>UsageSP sanity checker</entry>
1547               <entry>dynamic</entry>
1548               <entry>-</entry>
1549             </row>
1550             <row>
1551               <entry><option>-dverbose-core2core</option></entry>
1552               <entry>Show output from each core-to-core pass</entry>
1553               <entry>dynamic</entry>
1554               <entry>-</entry>
1555             </row>
1556             <row>
1557               <entry><option>-dverbose-stg2stg</option></entry>
1558               <entry>Show output from each STG-to-STG pass</entry>
1559               <entry>dynamic</entry>
1560               <entry>-</entry>
1561             </row>
1562             <row>
1563               <entry><option>-unreg</option></entry>
1564               <entry>Enable unregisterised compilation</entry>
1565               <entry>static</entry>
1566               <entry>-</entry>
1567             </row>
1568           </tbody>
1569         </tgroup>
1570       </informaltable>
1571     </sect2>
1572       
1573     <sect2>
1574       <title>Misc compiler options</title>
1575
1576       <informaltable>
1577         <tgroup cols=3 align=left colsep=1 rowsep=1>
1578           <thead>
1579             <row>
1580               <entry>Flag</entry>
1581               <entry>Description</entry>
1582               <entry>Static/Dynamic</entry>
1583               <entry>Reverse</entry>
1584             </row>
1585           </thead>
1586           <tbody>
1587             <row>
1588               <entry><option>-funfold-casms-in-hi-file</option></entry>
1589               <entry>Allow casms in unfoldings</entry>
1590               <entry>static</entry>
1591               <entry>-</entry>
1592             </row>
1593             <row>
1594               <entry><option>-femit-extern-decls</option></entry>
1595               <entry>???</entry>
1596               <entry>static</entry>
1597               <entry>-</entry>
1598             </row>
1599             <row>
1600               <entry><option>-fglobalise-toplev-names</option></entry>
1601               <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1602               <entry>static</entry>
1603               <entry>-</entry>
1604             </row>
1605             <row>
1606               <entry><option>-fno-hi-version-check</option></entry>
1607               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1608               <entry>static</entry>
1609               <entry>-</entry>
1610             </row>
1611             <row>
1612               <entry><option>-dno-black-holing</option></entry>
1613               <entry>Turn off black holing (probably doesn't work)</entry>
1614               <entry>static</entry>
1615               <entry>-</entry>
1616             </row>
1617             <row>
1618               <entry><option>-fno-method-sharing</option></entry>
1619               <entry>Don't share specialisations of overloaded functions</entry>
1620               <entry>static</entry>
1621               <entry>-</entry>
1622             </row>
1623             <row>
1624               <entry><option>-fno-prune-decls</option></entry>
1625               <entry>Renamer: don't prune declarations</entry>
1626               <entry>static</entry>
1627               <entry>-</entry>
1628             </row>
1629             <row>
1630               <entry><option>-fno-prune-tydecls</option></entry>
1631               <entry>Renamer: don't prune type declarations</entry>
1632               <entry>static</entry>
1633               <entry>-</entry>
1634             </row>
1635             <row>
1636               <entry><option>-fhistory-size</option></entry>
1637               <entry>Set simplification history size</entry>
1638               <entry>static</entry>
1639               <entry>-</entry>
1640             </row>
1641             <row>
1642               <entry><option>-funregisterised</option></entry>
1643               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1644               <entry>static</entry>
1645               <entry>-</entry>
1646             </row>
1647             <row>
1648               <entry><option>-fno-asm-mangling</option></entry>
1649               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1650               <entry>static</entry>
1651               <entry>-</entry>
1652             </row>
1653           </tbody>
1654         </tgroup>
1655       </informaltable>
1656     </sect2>
1657   </sect1>
1658
1659
1660 <!--
1661 Still to document:
1662
1663 Misc:
1664   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1665   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
1666
1667   -Bdir
1668 -->
1669
1670 <!-- Emacs stuff:
1671      ;;; Local Variables: ***
1672      ;;; mode: sgml ***
1673      ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***
1674      ;;; End: ***
1675  -->