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