[project @ 2002-03-13 16:31:05 by simonmar]
[ghc-hetmet.git] / ghc / docs / users_guide / flags.sgml
1   <sect1 id="flag-reference">
2     <title>Flag reference</title>
3
4     <para>This section is a quick-reference for GHC's command-line
5     flags.  For each flag, we also list its static/dynamic status (see
6     <xref linkend="static-dynamic-flags">), and the flag's opposite
7     (if available).</para>
8
9     <sect2>
10       <title>Help and verbosity options (<xref linkend="options-help">)</title>
11
12       <informaltable>
13         <tgroup cols=3 align=left colsep=1 rowsep=1>
14           <thead>
15             <row>
16               <entry>Flag</entry>
17               <entry>Description</entry>
18               <entry>Static/Dynamic</entry>
19               <entry>Reverse</entry>
20             </row>
21           </thead>
22           <tbody>
23             <row>
24               <entry><option>-?</option></entry>
25               <entry>help</entry>
26               <entry>static</entry>
27               <entry>-</entry>
28             </row>
29             <row>
30               <entry><option>-help</option></entry>
31               <entry>help</entry>
32               <entry>static</entry>
33               <entry>-</entry>
34             </row>
35             <row>
36               <entry><option>-v</option></entry>
37               <entry>verbose mode (equivalent to <option>-v3</option>)</entry>
38               <entry>dynamic</entry>
39               <entry>-</entry>
40             </row>
41             <row>
42               <entry><option>-v</option><replaceable>n</replaceable></entry>
43               <entry>set verbosity level</entry>
44               <entry>dynamic</entry>
45               <entry>-</entry>
46             </row>
47             <row>
48               <entry><option>&ndash;&ndash;version</option></entry>
49               <entry>display GHC version</entry>
50               <entry>static</entry>
51               <entry>-</entry>
52             </row>
53             <row>
54               <entry><option>&ndash;&ndash;numeric-version</option></entry>
55               <entry>display GHC version (numeric only)</entry>
56               <entry>static</entry>
57               <entry>-</entry>
58             </row>
59             <row>
60               <entry><option>&ndash;&ndash;print-libdir</option></entry>
61               <entry>display GHC library directory</entry>
62               <entry>static</entry>
63               <entry>-</entry>
64             </row>
65           </tbody>
66         </tgroup>
67       </informaltable>
68
69     </sect2>
70     <sect2>
71       <title>Which phases to run (<xref linkend="options-order">)</title>
72       
73       <informaltable>
74         <tgroup cols=3 align=left colsep=1 rowsep=1>
75           <thead>
76             <row>
77               <entry>Flag</entry>
78               <entry>Description</entry>
79               <entry>Static/Dynamic</entry>
80               <entry>Reverse</entry>
81             </row>
82           </thead>
83           <tbody>
84             <row>
85               <entry><option>-E</option></entry>
86               <entry>Stop after preprocessing (<literal>.hspp</literal> file)</entry>
87               <entry>static</entry>
88               <entry>-</entry>
89             </row>
90             <row>
91               <entry><option>-C</option></entry>
92               <entry>Stop after generating C (<literal>.hc</literal> file)</entry>
93               <entry>static</entry>
94               <entry>-</entry>
95             </row>
96             <row>
97               <entry><option>-S</option></entry>
98               <entry>Stop after generating assembly (<literal>.s</literal> file)</entry>
99               <entry>static</entry>
100               <entry>-</entry>
101             </row>
102             <row>
103               <entry><option>-c</option></entry>
104               <entry>Stop after compiling to object code (<literal>.o</literal> file)</entry>
105               <entry>static</entry>
106               <entry>-</entry>
107             </row>
108           </tbody>
109         </tgroup>
110       </informaltable>
111     </sect2>
112
113     <sect2>
114       <title>Redirecting output (<xref linkend="options-output">)</title>
115       
116       <informaltable>
117         <tgroup cols=3 align=left colsep=1 rowsep=1>
118           <thead>
119             <row>
120               <entry>Flag</entry>
121               <entry>Description</entry>
122               <entry>Static/Dynamic</entry>
123               <entry>Reverse</entry>
124             </row>
125           </thead>
126           <tbody>
127             <row>
128               <entry><option>-hcsuf</option> <replaceable>suffix</replaceable></entry>
129               <entry>set the suffix to use for intermediate C files</entry>
130               <entry>static</entry>
131               <entry>-</entry>
132             </row>
133             <row>
134               <entry><option>-hidir</option> <replaceable>dir</replaceable></entry>
135               <entry>set directory for interface files</entry>
136               <entry>static</entry>
137               <entry>-</entry>
138             </row>
139             <row>
140               <entry><option>-hisuf</option> <replaceable>suffix</replaceable></entry>
141               <entry>set the suffix to use for interface files</entry>
142               <entry>static</entry>
143               <entry>-</entry>
144             </row>
145             <row>
146               <entry><option>-o</option> <replaceable>filename</replaceable></entry>
147               <entry>set output filename</entry>
148               <entry>static</entry>
149               <entry>-</entry>
150             </row>
151             <row>
152               <entry><option>-odir</option> <replaceable>dir</replaceable></entry>
153               <entry>set output directory</entry>
154               <entry>static</entry>
155               <entry>-</entry>
156             </row>
157             <row>
158               <entry><option>-ohi</option> <replaceable>filename</replaceable></entry>
159               <entry>set the filename in which to put the interface</entry>
160               <entry>static</entry>
161               <entry></entry>
162             </row>
163             <row>
164               <entry><option>-osuf</option> <replaceable>suffix</replaceable></entry>
165               <entry>set the output file suffix</entry>
166               <entry>static</entry>
167               <entry>-</entry>
168             </row>
169           </tbody>
170         </tgroup>
171       </informaltable>
172     </sect2>
173
174     <sect2>
175       <title>Keeping intermediate files (<xref linkend="keeping-intermediates">)</title>
176       
177       <informaltable>
178         <tgroup cols=3 align=left colsep=1 rowsep=1>
179           <thead>
180             <row>
181               <entry>Flag</entry>
182               <entry>Description</entry>
183               <entry>Static/Dynamic</entry>
184               <entry>Reverse</entry>
185             </row>
186           </thead>
187           <tbody>
188             <row>
189               <entry><option>-keep-hc-file</option></entry>
190               <entry>retain intermediate <literal>.hc</literal> files</entry>
191               <entry>static</entry>
192               <entry>-</entry>
193             </row>
194             <row>
195               <entry><option>-keep-s-file</option></entry>
196               <entry>retain intermediate <literal>.s</literal> files</entry>
197               <entry>static</entry>
198               <entry>-</entry>
199             </row>
200             <row>
201               <entry><option>-keep-raw-s-file</option></entry>
202               <entry>retain intermediate <literal>.raw_s</literal> files</entry>
203               <entry>static</entry>
204               <entry>-</entry>
205             </row>
206             <row>
207               <entry><option>-keep-tmp-files</option></entry>
208               <entry>retain all intermediate temporary files</entry>
209               <entry>static</entry>
210               <entry>-</entry>
211             </row>
212           </tbody>
213         </tgroup>
214       </informaltable>
215     </sect2>
216
217     <sect2>
218       <title>Temporary files (<xref linkend="temp-files">)</title>
219       
220       <informaltable>
221         <tgroup cols=3 align=left colsep=1 rowsep=1>
222           <thead>
223             <row>
224               <entry>Flag</entry>
225               <entry>Description</entry>
226               <entry>Static/Dynamic</entry>
227               <entry>Reverse</entry>
228             </row>
229           </thead>
230           <tbody>
231             <row>
232               <entry><option>-tmpdir</option></entry>
233               <entry>set the directory for temporary files</entry>
234               <entry>static</entry>
235               <entry>-</entry>
236             </row>
237           </tbody>
238         </tgroup>
239       </informaltable>
240     </sect2>
241
242     <sect2>
243       <title>Finding imports (<xref linkend="options-finding-imports">)</title>
244
245       <informaltable>
246         <tgroup cols=3 align=left colsep=1 rowsep=1>
247           <thead>
248             <row>
249               <entry>Flag</entry>
250
251               <entry>Description</entry>
252               <entry>Static/Dynamic</entry>
253               <entry>Reverse</entry>
254             </row>
255           </thead>
256           <tbody>
257             <row>
258               <entry><option>-i</option><replaceable>dir1</replaceable>:<replaceable>dir2</replaceable>:...</entry>
259               <entry>add <replaceable>dir</replaceable>,
260                   <replaceable>dir2</replaceable>, etc. to import path</entry>
261               <entry>static</entry>
262               <entry>-</entry>
263             </row>
264             <row>
265               <entry><option>-i</option></entry>
266               <entry>Empty the import directory list</entry>
267               <entry>static</entry>
268               <entry>-</entry>
269             </row>
270           </tbody>
271         </tgroup>
272       </informaltable>
273     </sect2>
274
275     <sect2>
276       <title>Interface file options (<xref linkend="hi-options">)</title>
277
278       <informaltable>
279         <tgroup cols=3 align=left colsep=1 rowsep=1>
280           <thead>
281             <row>
282               <entry>Flag</entry>
283
284               <entry>Description</entry>
285               <entry>Static/Dynamic</entry>
286               <entry>Reverse</entry>
287             </row>
288           </thead>
289           <tbody>
290             <row>
291               <entry><option>-ddump-hi</option></entry>
292               <entry>Dump the new interface to stdout</entry>
293               <entry>dynamic</entry>
294               <entry>-</entry>
295             </row>
296             <row>
297               <entry><option>-ddump-hi-diffs</option></entry>
298               <entry>Show the differences vs. the old interface</entry>
299               <entry>dynamic</entry>
300               <entry>-</entry>
301             </row>
302           </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           </tbody>
644         </tgroup>
645       </informaltable>
646               
647     </sect2>
648     <sect2>
649       <title>Individual optimisations (<xref linkend="options-f">)</title>
650
651       <informaltable>
652         <tgroup cols=3 align=left colsep=1 rowsep=1>
653           <thead>
654             <row>
655               <entry>Flag</entry>
656               <entry>Description</entry>
657               <entry>Static/Dynamic</entry>
658               <entry>Reverse</entry>
659             </row>
660           </thead>
661           <tbody>
662             <row>
663               <entry><option>-fcase-merge</option></entry>
664               <entry>Enable case-merging</entry>
665               <entry>static</entry>
666               <entry><option>-fno-case-merge</option></entry>
667             </row>
668
669             <row>
670               <entry><option>-fdicts-strict</option></entry>
671               <entry>Make dictionaries strict</entry>
672               <entry>dynamic</entry>
673               <entry><option>-fno-dicts-strict</option></entry>
674             </row>
675
676             <row>
677               <entry><option>-fdo-eta-reduction</option></entry>
678               <entry>Enable eta-reduction</entry>
679               <entry>static</entry>
680               <entry><option>-fno-do-eta-reduction</option></entry>
681             </row>
682
683             <row>
684               <entry><option>-fdo-lambda-eta-expansion</option></entry>
685               <entry>Enable lambda eta-reduction</entry>
686               <entry>static</entry>
687               <entry><option>-fno-do-lambda-eta-expansion</option></entry>
688             </row>
689
690             <row>
691               <entry><option>-fexcess-precision</option></entry>
692               <entry>Enable excess intermediate precision</entry>
693               <entry>static</entry>
694               <entry><option>-fno-excess-precision</option></entry>
695             </row>
696
697             <row>
698               <entry><option>-ffoldr-build-on</option></entry>
699               <entry>Enable foldr-build optimisation</entry>
700               <entry>static</entry>
701               <entry><option>-fno-foldr-build-on</option></entry>
702             </row>
703
704             <row>
705               <entry><option>-fignore-asserts</option></entry>
706               <entry>Ignore assertions in the source</entry>
707               <entry>static</entry>
708               <entry><option>-fno-ignore-asserts</option></entry>
709             </row>
710
711             <row>
712               <entry><option>-fignore-interface-pragmas</option></entry>
713               <entry>Ignore pragmas in interface files</entry>
714               <entry>static</entry>
715               <entry><option>-fno-ignore-interface-pragmas</option></entry>
716             </row>
717
718             <row>
719               <entry><option>-flet-no-escape</option></entry>
720               <entry>Enable let-no-escape optimisation</entry>
721               <entry>static</entry>
722               <entry><option>-fno-let-no-escape</option></entry>
723             </row>
724
725             <row>
726               <entry><option>-fliberate-case-threshold</option></entry>
727               <entry>Tweak the liberate-case optimisation (default: 10)</entry>
728               <entry>static</entry>
729               <entry><option>-fno-liberate-case-threshold</option></entry>
730             </row>
731
732             <row>
733               <entry><option>-fomit-interface-pragmas</option></entry>
734               <entry>Don't generate interface pragmas</entry>
735               <entry>static</entry>
736               <entry><option>-fno-omit-interface-pragmas</option></entry>
737             </row>
738
739             <row>
740               <entry><option>-fmax-worker-args</option></entry>
741               <entry>If a worker has that many arguments, none will be
742                 unpacked anymore (default: 10)</entry>
743               <entry>static</entry>
744               <entry>-</entry>
745             </row>
746
747             <row>
748               <entry><option>-fmax-simplifier-iterations</option></entry>
749               <entry>Set the max iterations for the simplifier</entry>
750               <entry>static</entry>
751               <entry>-</entry>
752             </row>
753
754             <row>
755               <entry><option>-fno-cpr</option></entry>
756               <entry>Turn off CPR analysis</entry>
757               <entry>static</entry>
758               <entry>-</entry>
759             </row>
760
761             <row>
762               <entry><option>-fno-cse</option></entry>
763               <entry>Turn off common sub-expression</entry>
764               <entry>static</entry>
765               <entry>-</entry>
766             </row>
767
768             <row>
769               <entry><option>-fno-pre-inlining</option></entry>
770               <entry>Turn off pre-inlining</entry>
771               <entry>static</entry>
772               <entry>-</entry>
773             </row>
774
775             <row>
776               <entry><option>-fno-strictness</option></entry>
777               <entry>Turn off strictness analysis</entry>
778               <entry>static</entry>
779               <entry>-</entry>
780             </row>
781
782             <row>
783               <entry><option>-fnumbers-strict</option></entry>
784               <entry>Make numbers strict</entry>
785               <entry>dynamic</entry>
786               <entry><option>-fno-numbers-strict</option></entry>
787             </row>
788
789             <row>
790               <entry><option>-funbox-strict-fields</option></entry>
791               <entry>Flatten strict constructor fields</entry>
792               <entry>static</entry>
793               <entry><option>-fno-unbox-strict-fields</option></entry>
794             </row>
795
796             <row>
797               <entry><option>-funfolding-creation-threshold</option></entry>
798               <entry>Tweak unfolding settings</entry>
799               <entry>static</entry>
800               <entry><option>-fno-unfolding-creation-threshold</option></entry>
801             </row>
802
803             <row>
804               <entry><option>-funfolding-fun-discount</option></entry>
805               <entry>Tweak unfolding settings</entry>
806               <entry>static</entry>
807               <entry><option>-fno-unfolding-fun-discount</option></entry>
808             </row>
809
810             <row>
811               <entry><option>-funfolding-keeness-factor</option></entry>
812               <entry>Tweak unfolding settings</entry>
813               <entry>static</entry>
814               <entry><option>-fno-unfolding-keeness-factor</option></entry>
815             </row>
816
817             <row>
818               <entry><option>-funfolding-update-in-place</option></entry>
819               <entry>Tweak unfolding settings</entry>
820               <entry>static</entry>
821               <entry><option>-fno-unfolding-update-in-place</option></entry>
822             </row>
823
824             <row>
825               <entry><option>-funfolding-use-threshold</option></entry>
826               <entry>Tweak unfolding settings</entry>
827               <entry>static</entry>
828               <entry><option>-fno-unfolding-use-threshold</option></entry>
829             </row>
830
831             <row>
832               <entry><option>-fusagesp</option></entry>
833               <entry>Turn on UsageSP analysis</entry>
834               <entry>static</entry>
835               <entry><option>-fno-usagesp</option></entry>
836             </row>
837           </tbody>
838         </tgroup>
839       </informaltable>
840     </sect2>
841
842     <sect2>
843       <title>Profiling options (<xref linkend="profiling">)</title>
844
845       <informaltable>
846         <tgroup cols=3 align=left colsep=1 rowsep=1>
847           <thead>
848             <row>
849               <entry>Flag</entry>
850               <entry>Description</entry>
851               <entry>Static/Dynamic</entry>
852               <entry>Reverse</entry>
853             </row>
854           </thead>
855           <tbody>
856             <row>
857               <entry><option>-auto</option></entry>
858               <entry>Auto-add <literal>_scc_</literal>s to all
859               exported functions</entry>
860               <entry>static</entry>
861               <entry><option>-no-auto</option></entry>
862             </row>
863             <row>
864               <entry><option>-auto-all</option></entry>
865               <entry>Auto-add <literal>_scc_</literal>s to all
866               top-level functions</entry>
867               <entry>static</entry>
868               <entry><option>-no-auto-all</option></entry>
869             </row>
870             <row>
871               <entry><option>-auto-dicts</option></entry>
872               <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
873               <entry>static</entry>
874               <entry><option>-no-auto-dicts</option></entry>
875             </row>
876             <row>
877               <entry><option>-caf-all</option></entry>
878               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
879               <entry>static</entry>
880               <entry><option>-no-caf-all</option></entry>
881             </row>
882             <row>
883               <entry><option>-prof</option></entry>
884               <entry>Turn on profiling</entry>
885               <entry>static</entry>
886               <entry>-</entry>
887             </row>
888             <row>
889               <entry><option>-ticky</option></entry>
890               <entry>Turn on ticky-ticky profiling</entry>
891               <entry>static</entry>
892               <entry>-</entry>
893             </row>
894           </tbody>
895         </tgroup>
896       </informaltable>
897     </sect2>
898
899     <sect2>
900       <title>Parallelism options (<xref linkend="sec-using-parallel">)</title>
901
902       <informaltable>
903         <tgroup cols=3 align=left colsep=1 rowsep=1>
904           <thead>
905             <row>
906               <entry>Flag</entry>
907               <entry>Description</entry>
908               <entry>Static/Dynamic</entry>
909               <entry>Reverse</entry>
910             </row>
911           </thead>
912           <tbody>
913             <row>
914               <entry><option>-gransim</option></entry>
915               <entry>Enable GRANSIM</entry>
916               <entry>static</entry>
917               <entry>-</entry>
918             </row>
919             <row>
920               <entry><option>-parallel</option></entry>
921               <entry>Enable Parallel Haskell</entry>
922               <entry>static</entry>
923               <entry>-</entry>
924             </row>
925             <row>
926               <entry><option>-smp</option></entry>
927               <entry>Enable SMP support</entry>
928               <entry>static</entry>
929               <entry>-</entry>
930             </row>
931           </tbody>
932         </tgroup>
933       </informaltable>
934     </sect2>
935
936     <sect2>
937       <title>C pre-processor options (<xref linkend="c-pre-processor">)</title>
938
939       <informaltable>
940         <tgroup cols=3 align=left colsep=1 rowsep=1>
941           <thead>
942             <row>
943               <entry>Flag</entry>
944               <entry>Description</entry>
945               <entry>Static/Dynamic</entry>
946               <entry>Reverse</entry>
947             </row>
948           </thead>
949           <tbody>
950             <row>
951               <entry><option>-cpp</option></entry>
952               <entry>Run the C pre-processor on Haskell source files</entry>
953               <entry>dynamic</entry>
954               <entry>-</entry>
955             </row>
956             <row>
957               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
958               <entry>Define a symbol in the C pre-processor</entry>
959               <entry>dynamic</entry>
960               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
961             </row>
962             <row>
963               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
964               <entry>Undefine a symbol in the C pre-processor</entry>
965               <entry>dynamic</entry>
966               <entry>-</entry>
967             </row>
968             <row>
969               <entry><option>-I</option><replaceable>dir</replaceable></entry>
970               <entry>Add <replaceable>dir</replaceable> to the
971               directory search list for <literal>#include</literal> files</entry>
972               <entry>static</entry>
973               <entry>-</entry>
974             </row>
975           </tbody>
976         </tgroup>
977       </informaltable>
978     </sect2>
979
980     <sect2>
981       <title>C compiler options (<xref linkend="options-C-compiler">)</title>
982       <informaltable>
983         <tgroup cols=3 align=left colsep=1 rowsep=1>
984           <thead>
985             <row>
986               <entry>Flag</entry>
987               <entry>Description</entry>
988               <entry>Static/Dynamic</entry>
989               <entry>Reverse</entry>
990             </row>
991           </thead>
992           <tbody>
993             <row>
994               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
995               <entry>Include <replaceable>file</replaceable> when
996               compiling the <filename>.hc</filename> file</entry>
997               <entry>dynamic</entry>
998               <entry>-</entry>
999             </row>
1000           </tbody>
1001         </tgroup>
1002       </informaltable>
1003     </sect2>
1004
1005     <sect2>
1006       <title>Code generation options (<xref linkend="options-codegen">)</title>
1007
1008       <informaltable>
1009         <tgroup cols=3 align=left colsep=1 rowsep=1>
1010           <thead>
1011             <row>
1012               <entry>Flag</entry>
1013               <entry>Description</entry>
1014               <entry>Static/Dynamic</entry>
1015               <entry>Reverse</entry>
1016             </row>
1017           </thead>
1018           <tbody>
1019             <row>
1020               <entry><option>-fasm</option></entry>
1021               <entry>Use the native code generator</entry>
1022               <entry>dynamic</entry>
1023               <entry>-fvia-C</entry>
1024             </row>
1025             <row>
1026               <entry><option>-fvia-C</option></entry>
1027               <entry>Compile via C</entry>
1028               <entry>dynamic</entry>
1029               <entry>-fasm</entry>
1030             </row>
1031             <row>
1032               <entry><option>-fno-code</option></entry>
1033               <entry>Omit code generation</entry>
1034               <entry>static</entry>
1035               <entry>-</entry>
1036             </row>
1037           </tbody>
1038         </tgroup>
1039       </informaltable>
1040     </sect2>
1041
1042     <sect2>
1043       <title>Linking options (<xref linkend="options-linker">)</title>
1044
1045       <informaltable>
1046         <tgroup cols=3 align=left colsep=1 rowsep=1>
1047           <thead>
1048             <row>
1049               <entry>Flag</entry>
1050               <entry>Description</entry>
1051               <entry>Static/Dynamic</entry>
1052               <entry>Reverse</entry>
1053             </row>
1054           </thead>
1055           <tbody>
1056             <row>
1057               <entry><option>-dynamic</option></entry>
1058               <entry>Use dynamic Haskell libraries (if available)</entry>
1059               <entry>static</entry>
1060               <entry>-</entry>
1061             </row>
1062             <row>
1063               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1064               <entry>Link in library <replaceable>lib</replaceable></entry>
1065               <entry>static</entry>
1066               <entry>-</entry>
1067             </row>
1068             <row>
1069               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1070               <entry>Add <replaceable>dir</replaceable> to the list of
1071               directories searched for libraries</entry>
1072               <entry>static</entry>
1073               <entry>-</entry>
1074             </row>
1075             <row>
1076               <entry><option>-package</option> <replaceable>name</replaceable></entry>
1077               <entry>Link in package <replaceable>name</replaceable></entry>
1078               <entry>static</entry>
1079               <entry>-</entry>
1080             </row>
1081             <row>
1082               <entry><option>-split-objs</option></entry>
1083               <entry>Split objects (for libraries)</entry>
1084               <entry>static</entry>
1085               <entry>-</entry>
1086             </row>
1087             <row>
1088               <entry><option>-static</option></entry>
1089               <entry>Use static Haskell libraries</entry>
1090               <entry>static</entry>
1091               <entry>-</entry>
1092             </row>
1093             <row>
1094               <entry><option>-no-hs-main</option></entry>
1095               <entry>Don't asssume this program contains <literal>main</literal></entry>
1096               <entry>static</entry>
1097               <entry>-</entry>
1098             </row>
1099           </tbody>
1100         </tgroup>
1101       </informaltable>
1102     </sect2>
1103
1104     <sect2>
1105       <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1106
1107       <informaltable>
1108         <tgroup cols=3 align=left colsep=1 rowsep=1>
1109           <thead>
1110             <row>
1111               <entry>Flag</entry>
1112               <entry>Description</entry>
1113               <entry>Static/Dynamic</entry>
1114               <entry>Reverse</entry>
1115             </row>
1116           </thead>
1117           <tbody>
1118             <row>
1119               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1120               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1121               <entry>static</entry>
1122               <entry>-</entry>
1123             </row>
1124             <row>
1125               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1126               <entry>Use <replaceable>cmd</replaceable> as the C
1127               pre-processor (with <option>-cpp</option> only)</entry>
1128               <entry>static</entry> <entry>-</entry>
1129             </row>
1130             <row>
1131               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1132               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1133               <entry>static</entry>
1134               <entry>-</entry>
1135             </row>
1136             <row>
1137               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1138               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1139               <entry>static</entry>
1140               <entry>-</entry>
1141             </row>
1142             <row>
1143               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1144               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1145               <entry>static</entry>
1146               <entry>-</entry>
1147             </row>
1148             <row>
1149               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1150               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1151               <entry>static</entry>
1152               <entry>-</entry>
1153             </row>
1154             <row>
1155               <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1156               <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1157               <entry>static</entry>
1158               <entry>-</entry>
1159             </row>
1160             <row>
1161               <entry><option>-pgmF</option> <replaceable>cmd</replaceable></entry>
1162               <entry>Use <replaceable>cmd</replaceable> as the pre-processor
1163               (with <option>-F</option> only)</entry>
1164               <entry>static</entry>
1165               <entry>-</entry>
1166             </row>
1167           </tbody>
1168         </tgroup>
1169       </informaltable>
1170       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1171       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1172       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1173       <indexterm><primary><option>-pgma</option></primary></indexterm>
1174       <indexterm><primary><option>-pgml</option></primary></indexterm>
1175       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1176       <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1177       <indexterm><primary><option>-pgmF</option></primary></indexterm>
1178
1179     </sect2>
1180
1181     <sect2>
1182       <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1183
1184       <informaltable>
1185         <tgroup cols=3 align=left colsep=1 rowsep=1>
1186           <thead>
1187             <row>
1188               <entry>Flag</entry>
1189               <entry>Description</entry>
1190               <entry>Static/Dynamic</entry>
1191               <entry>Reverse</entry>
1192             </row>
1193           </thead>
1194           <tbody>
1195             <row>
1196               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1197               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1198               <entry>dynamic</entry>
1199               <entry>-</entry>
1200             </row>
1201             <row>
1202               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1203               <entry>pass <replaceable>option</replaceable> to cpp (with
1204               <option>-cpp</option> only)</entry>
1205               <entry>dynamic</entry>
1206               <entry>-</entry>
1207             </row>
1208             <row>
1209               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1210               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1211               <entry>dynamic</entry>
1212               <entry>-</entry>
1213             </row>
1214             <row>
1215               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1216               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1217               <entry>dynamic</entry>
1218               <entry>-</entry>
1219             </row>
1220             <row>
1221               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1222               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1223               <entry>static</entry>
1224               <entry>-</entry>
1225             </row>
1226             <row>
1227               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1228               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1229               <entry>static</entry>
1230               <entry>-</entry>
1231             </row>
1232             <row>
1233               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1234               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1235               <entry>static</entry>
1236               <entry>-</entry>
1237             </row>
1238           </tbody>
1239         </tgroup>
1240       </informaltable>
1241     </sect2>
1242
1243     <sect2>
1244       <title>Platform-specific options (<xref linkend="options-platform">)</title>
1245       
1246       <informaltable>
1247         <tgroup cols=3 align=left colsep=1 rowsep=1>
1248           <thead>
1249             <row>
1250               <entry>Flag</entry>
1251               <entry>Description</entry>
1252               <entry>Static/Dynamic</entry>
1253               <entry>Reverse</entry>
1254             </row>
1255           </thead>
1256           <tbody>
1257             <row>
1258               <entry><option>-mv8</option></entry>
1259               <entry>(SPARC only) enable version 8 support</entry>
1260               <entry>static</entry>
1261               <entry>-</entry>
1262             </row>
1263             <row>
1264               <entry><option>-monly-[32]-regs</option></entry>
1265               <entry>(x86 only) give some registers back to the C compiler</entry>
1266               <entry>dynamic</entry>
1267               <entry>-</entry>
1268             </row>
1269           </tbody>
1270         </tgroup>
1271       </informaltable>
1272     </sect2>
1273
1274          
1275     <sect2>
1276       <title>External core file options (<xref linkend="ext-core">)</title>
1277
1278       <informaltable>
1279         <tgroup cols=3 align=left colsep=1 rowsep=1>
1280           <thead>
1281             <row>
1282               <entry>Flag</entry>
1283               <entry>Description</entry>
1284               <entry>Static/Dynamic</entry>
1285               <entry>Reverse</entry>
1286             </row>
1287           </thead>
1288           <tbody>
1289             <row>
1290               <entry><option>-fext-core</option></entry>
1291               <entry>Generate <filename>.hcr</filename> external Core files</entry>
1292               <entry>static</entry>
1293               <entry>-</entry>
1294             </row>
1295           </tbody>
1296         </tgroup>
1297       </informaltable>
1298     </sect2>
1299         
1300
1301     <sect2>
1302       <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1303
1304       <informaltable>
1305         <tgroup cols=3 align=left colsep=1 rowsep=1>
1306           <thead>
1307             <row>
1308               <entry>Flag</entry>
1309               <entry>Description</entry>
1310               <entry>Static/Dynamic</entry>
1311               <entry>Reverse</entry>
1312             </row>
1313           </thead>
1314           <tbody>
1315             <row>
1316               <entry><option>-dcore-lint</option></entry>
1317               <entry>Turn on internal sanity checking</entry>
1318               <entry>dynamic</entry>
1319               <entry>-</entry>
1320             </row>
1321             <row>
1322               <entry><option>-ddump-absC</option></entry>
1323               <entry>Dump abstract C</entry>
1324               <entry>dynamic</entry>
1325               <entry>-</entry>
1326             </row>
1327             <row>
1328               <entry><option>-ddump-asm</option></entry>
1329               <entry>Dump assembly</entry>
1330               <entry>dynamic</entry>
1331               <entry>-</entry>
1332             </row>
1333             <row>
1334               <entry><option>-ddump-bcos</option></entry>
1335               <entry>Dump interpreter byte code</entry>
1336               <entry>dynamic</entry>
1337               <entry>-</entry>
1338             </row>
1339             <row>
1340               <entry><option>-ddump-cpranal</option></entry>
1341               <entry>Dump output from CPR analysis</entry>
1342               <entry>dynamic</entry>
1343               <entry>-</entry>
1344             </row>
1345             <row>
1346               <entry><option>-ddump-cse</option></entry>
1347               <entry>Dump CSE output</entry>
1348               <entry>dynamic</entry>
1349               <entry>-</entry>
1350             </row>
1351             <row>
1352               <entry><option>-ddump-deriv</option></entry>
1353               <entry>Dump deriving output</entry>
1354               <entry>dynamic</entry>
1355               <entry>-</entry>
1356             </row>
1357             <row>
1358               <entry><option>-ddump-ds</option></entry>
1359               <entry>Dump desugarer output</entry>
1360               <entry>dynamic</entry>
1361               <entry>-</entry>
1362             </row>
1363             <row>
1364               <entry><option>-ddump-flatC</option></entry>
1365               <entry>Dump &ldquo;flat&rdquo; C</entry>
1366               <entry>dynamic</entry>
1367               <entry>-</entry>
1368             </row>
1369             <row>
1370               <entry><option>-ddump-foreign</option></entry>
1371               <entry>Dump <literal>foreign export</literal> stubs</entry>
1372               <entry>dynamic</entry>
1373               <entry>-</entry>
1374             </row>
1375             <row>
1376               <entry><option>-ddump-inlinings</option></entry>
1377               <entry>Dump inlining info</entry>
1378               <entry>dynamic</entry>
1379               <entry>-</entry>
1380             </row>
1381             <row>
1382               <entry><option>-ddump-occur-anal</option></entry>
1383               <entry>Dump occurrence analysis output</entry>
1384               <entry>dynamic</entry>
1385               <entry>-</entry>
1386             </row>
1387             <row>
1388               <entry><option>-ddump-parsed</option></entry>
1389               <entry>Dump parse tree</entry>
1390               <entry>dynamic</entry>
1391               <entry>-</entry>
1392             </row>
1393             <row>
1394               <entry><option>-ddump-realC</option></entry>
1395               <entry>Dump &ldquo;real&rdquo; C</entry>
1396               <entry>dynamic</entry>
1397               <entry>-</entry>
1398             </row>
1399             <row>
1400               <entry><option>-ddump-rn</option></entry>
1401               <entry>Dump renamer output</entry>
1402               <entry>dynamic</entry>
1403               <entry>-</entry>
1404             </row>
1405             <row>
1406               <entry><option>-ddump-rules</option></entry>
1407               <entry>Dump rules</entry>
1408               <entry>dynamic</entry>
1409               <entry>-</entry>
1410             </row>
1411             <row>
1412               <entry><option>-ddump-sat</option></entry>
1413               <entry>Dump saturated output</entry>
1414               <entry>dynamic</entry>
1415               <entry>-</entry>
1416             </row>
1417             <row>
1418               <entry><option>-ddump-simpl</option></entry>
1419               <entry>Dump final simplifier output</entry>
1420               <entry>dynamic</entry>
1421               <entry>-</entry>
1422             </row>
1423             <row>
1424               <entry><option>-ddump-simpl-iterations</option></entry>
1425               <entry>Dump output from each simplifier iteration</entry>
1426               <entry>dynamic</entry>
1427               <entry>-</entry>
1428             </row>
1429             <row>
1430               <entry><option>-ddump-spec</option></entry>
1431               <entry>Dump specialiser output</entry>
1432               <entry>dynamic</entry>
1433               <entry>-</entry>
1434             </row>
1435             <row>
1436               <entry><option>-ddump-stg</option></entry>
1437               <entry>Dump final STG</entry>
1438               <entry>dynamic</entry>
1439               <entry>-</entry>
1440             </row>
1441             <row>
1442               <entry><option>-ddump-stranal</option></entry>
1443               <entry>Dump strictness analyser output</entry>
1444               <entry>dynamic</entry>
1445               <entry>-</entry>
1446             </row>
1447             <row>
1448               <entry><option>-ddump-tc</option></entry>
1449               <entry>Dump typechecker output</entry>
1450               <entry>dynamic</entry>
1451               <entry>-</entry>
1452             </row>
1453             <row>
1454               <entry><option>-ddump-types</option></entry>
1455               <entry>Dump type signatures</entry>
1456               <entry>dynamic</entry>
1457               <entry>-</entry>
1458             </row>
1459             <row>
1460               <entry><option>-ddump-usagesp</option></entry>
1461               <entry>Dump UsageSP analysis output</entry>
1462               <entry>dynamic</entry>
1463               <entry>-</entry>
1464             </row>
1465             <row>
1466               <entry><option>-ddump-worker-wrapper</option></entry>
1467               <entry>Dump worker-wrapper output</entry>
1468               <entry>dynamic</entry>
1469               <entry>-</entry>
1470             </row>
1471             <row>
1472               <entry><option>-ddump-rn-trace</option></entry>
1473               <entry>Trace renamer</entry>
1474               <entry>dynamic</entry>
1475               <entry>-</entry>
1476             </row>
1477             <row>
1478               <entry><option>-ddump-rn-stats</option></entry>
1479               <entry>Renamer stats</entry>
1480               <entry>dynamic</entry>
1481               <entry>-</entry>
1482             </row>
1483             <row>
1484               <entry><option>-ddump-stix</option></entry>
1485               <entry>Native code generator intermediate form</entry>
1486               <entry>dynamic</entry>
1487               <entry>-</entry>
1488             </row>
1489             <row>
1490               <entry><option>-ddump-simpl-stats</option></entry>
1491               <entry>Dump simplifier stats</entry>
1492               <entry>dynamic</entry>
1493               <entry>-</entry>
1494             </row>
1495             <row>
1496               <entry><option>-dppr-debug</option></entry>
1497               <entry>Turn on debug printing (more verbose)</entry>
1498               <entry>static</entry>
1499               <entry>-</entry>
1500             </row>
1501             <row>
1502               <entry><option>-dppr-noprags</option></entry>
1503               <entry>Don't output pragma info in dumps</entry>
1504               <entry>static</entry>
1505               <entry>-</entry>
1506             </row>
1507             <row>
1508               <entry><option>-dppr-user-length</option></entry>
1509               <entry>Set the depth for printing expressions in error msgs</entry>
1510               <entry>static</entry>
1511               <entry>-</entry>
1512             </row>
1513             <row>
1514               <entry><option>-dsource-stats</option></entry>
1515               <entry>Dump haskell source stats</entry>
1516               <entry>dynamic</entry>
1517               <entry>-</entry>
1518             </row>
1519             <row>
1520               <entry><option>-dstg-lint</option></entry>
1521               <entry>STG pass sanity checking</entry>
1522               <entry>dynamic</entry>
1523               <entry>-</entry>
1524             </row>
1525             <row>
1526               <entry><option>-dstg-stats</option></entry>
1527               <entry>Dump STG stats</entry>
1528               <entry>dynamic</entry>
1529               <entry>-</entry>
1530             </row>
1531             <row>
1532               <entry><option>-dusagesp-lint</option></entry>
1533               <entry>UsageSP sanity checker</entry>
1534               <entry>dynamic</entry>
1535               <entry>-</entry>
1536             </row>
1537             <row>
1538               <entry><option>-dverbose-core2core</option></entry>
1539               <entry>Show output from each core-to-core pass</entry>
1540               <entry>dynamic</entry>
1541               <entry>-</entry>
1542             </row>
1543             <row>
1544               <entry><option>-dverbose-stg2stg</option></entry>
1545               <entry>Show output from each STG-to-STG pass</entry>
1546               <entry>dynamic</entry>
1547               <entry>-</entry>
1548             </row>
1549             <row>
1550               <entry><option>-unreg</option></entry>
1551               <entry>Enable unregisterised compilation</entry>
1552               <entry>static</entry>
1553               <entry>-</entry>
1554             </row>
1555           </tbody>
1556         </tgroup>
1557       </informaltable>
1558     </sect2>
1559       
1560     <sect2>
1561       <title>Misc compiler options</title>
1562
1563       <informaltable>
1564         <tgroup cols=3 align=left colsep=1 rowsep=1>
1565           <thead>
1566             <row>
1567               <entry>Flag</entry>
1568               <entry>Description</entry>
1569               <entry>Static/Dynamic</entry>
1570               <entry>Reverse</entry>
1571             </row>
1572           </thead>
1573           <tbody>
1574             <row>
1575               <entry><option>-funfold-casms-in-hi-file</option></entry>
1576               <entry>Allow casms in unfoldings</entry>
1577               <entry>static</entry>
1578               <entry>-</entry>
1579             </row>
1580             <row>
1581               <entry><option>-femit-extern-decls</option></entry>
1582               <entry>???</entry>
1583               <entry>static</entry>
1584               <entry>-</entry>
1585             </row>
1586             <row>
1587               <entry><option>-fglobalise-toplev-names</option></entry>
1588               <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1589               <entry>static</entry>
1590               <entry>-</entry>
1591             </row>
1592             <row>
1593               <entry><option>-fno-hi-version-check</option></entry>
1594               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1595               <entry>static</entry>
1596               <entry>-</entry>
1597             </row>
1598             <row>
1599               <entry><option>-dno-black-holing</option></entry>
1600               <entry>Turn off black holing (probably doesn't work)</entry>
1601               <entry>static</entry>
1602               <entry>-</entry>
1603             </row>
1604             <row>
1605               <entry><option>-fno-method-sharing</option></entry>
1606               <entry>Don't share specialisations of overloaded functions</entry>
1607               <entry>static</entry>
1608               <entry>-</entry>
1609             </row>
1610             <row>
1611               <entry><option>-fno-prune-decls</option></entry>
1612               <entry>Renamer: don't prune declarations</entry>
1613               <entry>static</entry>
1614               <entry>-</entry>
1615             </row>
1616             <row>
1617               <entry><option>-fno-prune-tydecls</option></entry>
1618               <entry>Renamer: don't prune type declarations</entry>
1619               <entry>static</entry>
1620               <entry>-</entry>
1621             </row>
1622             <row>
1623               <entry><option>-fhistory-size</option></entry>
1624               <entry>Set simplification history size</entry>
1625               <entry>static</entry>
1626               <entry>-</entry>
1627             </row>
1628             <row>
1629               <entry><option>-funregisterised</option></entry>
1630               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1631               <entry>static</entry>
1632               <entry>-</entry>
1633             </row>
1634             <row>
1635               <entry><option>-fno-asm-mangling</option></entry>
1636               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1637               <entry>static</entry>
1638               <entry>-</entry>
1639             </row>
1640           </tbody>
1641         </tgroup>
1642       </informaltable>
1643     </sect2>
1644   </sect1>
1645
1646
1647 <!--
1648 Still to document:
1649
1650 Misc:
1651   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1652   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
1653
1654   -Bdir
1655 -->
1656
1657 <!-- Emacs stuff:
1658      ;;; Local Variables: ***
1659      ;;; mode: sgml ***
1660      ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***
1661      ;;; End: ***
1662  -->