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