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