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