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