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