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