c662ebea4a70bfbaedb381d9b399a8820738166a
[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-interface-threshold</option></entry>
786               <entry>Tweak unfolding settings</entry>
787               <entry>static</entry>
788               <entry><option>-fno-unfolding-interface-threshold</option></entry>
789             </row>
790
791             <row>
792               <entry><option>-funfolding-update-in-place</option></entry>
793               <entry>Tweak unfolding settings</entry>
794               <entry>static</entry>
795               <entry><option>-fno-unfolding-update-in-place</option></entry>
796             </row>
797
798             <row>
799               <entry><option>-funfolding-use-threshold</option></entry>
800               <entry>Tweak unfolding settings</entry>
801               <entry>static</entry>
802               <entry><option>-fno-unfolding-use-threshold</option></entry>
803             </row>
804
805             <row>
806               <entry><option>-fusagesp</option></entry>
807               <entry>Turn on UsageSP analysis</entry>
808               <entry>static</entry>
809               <entry><option>-fno-usagesp</option></entry>
810             </row>
811           </tbody>
812         </tgroup>
813       </informaltable>
814     </sect2>
815
816     <sect2>
817       <title>Profiling options (<xref linkend="profiling">)</title>
818
819       <informaltable>
820         <tgroup cols=3 align=left colsep=1 rowsep=1>
821           <thead>
822             <row>
823               <entry>Flag</entry>
824               <entry>Description</entry>
825               <entry>Static/Dynamic</entry>
826               <entry>Reverse</entry>
827             </row>
828           </thead>
829           <tbody>
830             <row>
831               <entry><option>-auto</option></entry>
832               <entry>Auto-add <literal>_scc_</literal>s to all
833               exported functions</entry>
834               <entry>static</entry>
835               <entry><option>-no-auto</option></entry>
836             </row>
837             <row>
838               <entry><option>-auto-all</option></entry>
839               <entry>Auto-add <literal>_scc_</literal>s to all
840               top-level functions</entry>
841               <entry>static</entry>
842               <entry><option>-no-auto-all</option></entry>
843             </row>
844             <row>
845               <entry><option>-auto-dicts</option></entry>
846               <entry>Auto-add <literal>_scc_</literal>s to all dictionaries</entry>
847               <entry>static</entry>
848               <entry><option>-no-auto-dicts</option></entry>
849             </row>
850             <row>
851               <entry><option>-caf-all</option></entry>
852               <entry>Auto-add <literal>_scc_</literal>s to all CAFs</entry>
853               <entry>static</entry>
854               <entry><option>-no-caf-all</option></entry>
855             </row>
856             <row>
857               <entry><option>-prof</option></entry>
858               <entry>Turn on profiling</entry>
859               <entry>static</entry>
860               <entry>-</entry>
861             </row>
862             <row>
863               <entry><option>-ticky</option></entry>
864               <entry>Turn on ticky-ticky profiling</entry>
865               <entry>static</entry>
866               <entry>-</entry>
867             </row>
868           </tbody>
869         </tgroup>
870       </informaltable>
871     </sect2>
872
873     <sect2>
874       <title>Parallelism options (<xref linkend="sec-using-parallel">)</title>
875
876       <informaltable>
877         <tgroup cols=3 align=left colsep=1 rowsep=1>
878           <thead>
879             <row>
880               <entry>Flag</entry>
881               <entry>Description</entry>
882               <entry>Static/Dynamic</entry>
883               <entry>Reverse</entry>
884             </row>
885           </thead>
886           <tbody>
887             <row>
888               <entry><option>-gransim</option></entry>
889               <entry>Enable GRANSIM</entry>
890               <entry>static</entry>
891               <entry>-</entry>
892             </row>
893             <row>
894               <entry><option>-parallel</option></entry>
895               <entry>Enable Parallel Haskell</entry>
896               <entry>static</entry>
897               <entry>-</entry>
898             </row>
899             <row>
900               <entry><option>-smp</option></entry>
901               <entry>Enable SMP support</entry>
902               <entry>static</entry>
903               <entry>-</entry>
904             </row>
905           </tbody>
906         </tgroup>
907       </informaltable>
908     </sect2>
909
910     <sect2>
911       <title>C pre-processor options (<xref linkend="c-pre-processor">)</title>
912
913       <informaltable>
914         <tgroup cols=3 align=left colsep=1 rowsep=1>
915           <thead>
916             <row>
917               <entry>Flag</entry>
918               <entry>Description</entry>
919               <entry>Static/Dynamic</entry>
920               <entry>Reverse</entry>
921             </row>
922           </thead>
923           <tbody>
924             <row>
925               <entry><option>-cpp</option></entry>
926               <entry>Run the C pre-processor on Haskell source files</entry>
927               <entry>dynamic</entry>
928               <entry>-</entry>
929             </row>
930             <row>
931               <entry><option>-D</option><replaceable>symbol</replaceable><optional>=<replaceable>value</replaceable></optional></entry>
932               <entry>Define a symbol in the C pre-processor</entry>
933               <entry>dynamic</entry>
934               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
935             </row>
936             <row>
937               <entry><option>-U</option><replaceable>symbol</replaceable></entry>
938               <entry>Undefine a symbol in the C pre-processor</entry>
939               <entry>dynamic</entry>
940               <entry>-</entry>
941             </row>
942             <row>
943               <entry><option>-I</option><replaceable>dir</replaceable></entry>
944               <entry>Add <replaceable>dir</replaceable> to the
945               directory search list for <literal>#include</literal> files</entry>
946               <entry>static</entry>
947               <entry>-</entry>
948             </row>
949           </tbody>
950         </tgroup>
951       </informaltable>
952     </sect2>
953
954     <sect2>
955       <title>C compiler options (<xref linkend="options-C-compiler">)</title>
956       <informaltable>
957         <tgroup cols=3 align=left colsep=1 rowsep=1>
958           <thead>
959             <row>
960               <entry>Flag</entry>
961               <entry>Description</entry>
962               <entry>Static/Dynamic</entry>
963               <entry>Reverse</entry>
964             </row>
965           </thead>
966           <tbody>
967             <row>
968               <entry><option>-#include</option> <replaceable>file</replaceable></entry>
969               <entry>Include <replaceable>file</replaceable> when
970               compiling the <filename>.hc</filename> file</entry>
971               <entry>dynamic</entry>
972               <entry>-</entry>
973             </row>
974           </tbody>
975         </tgroup>
976       </informaltable>
977     </sect2>
978
979     <sect2>
980       <title>Code generation options (<xref linkend="options-codegen">)</title>
981
982       <informaltable>
983         <tgroup cols=3 align=left colsep=1 rowsep=1>
984           <thead>
985             <row>
986               <entry>Flag</entry>
987               <entry>Description</entry>
988               <entry>Static/Dynamic</entry>
989               <entry>Reverse</entry>
990             </row>
991           </thead>
992           <tbody>
993             <row>
994               <entry><option>-fasm</option></entry>
995               <entry>Use the native code generator</entry>
996               <entry>dynamic</entry>
997               <entry>-fvia-C</entry>
998             </row>
999             <row>
1000               <entry><option>-fvia-C</option></entry>
1001               <entry>Compile via C</entry>
1002               <entry>dynamic</entry>
1003               <entry>-fasm</entry>
1004             </row>
1005           </tbody>
1006         </tgroup>
1007       </informaltable>
1008     </sect2>
1009
1010     <sect2>
1011       <title>Linking options (<xref linkend="options-linker">)</title>
1012
1013       <informaltable>
1014         <tgroup cols=3 align=left colsep=1 rowsep=1>
1015           <thead>
1016             <row>
1017               <entry>Flag</entry>
1018               <entry>Description</entry>
1019               <entry>Static/Dynamic</entry>
1020               <entry>Reverse</entry>
1021             </row>
1022           </thead>
1023           <tbody>
1024             <row>
1025               <entry><option>-dynamic</option></entry>
1026               <entry>Use dynamic Haskell libraries (if available)</entry>
1027               <entry>static</entry>
1028               <entry>-</entry>
1029             </row>
1030             <row>
1031               <entry><option>-l</option><replaceable>lib</replaceable></entry>
1032               <entry>Link in library <replaceable>lib</replaceable></entry>
1033               <entry>static</entry>
1034               <entry>-</entry>
1035             </row>
1036             <row>
1037               <entry><option>-L</option><replaceable>dir</replaceable></entry>
1038               <entry>Add <replaceable>dir</replaceable> to the list of
1039               directories searched for libraries</entry>
1040               <entry>static</entry>
1041               <entry>-</entry>
1042             </row>
1043             <row>
1044               <entry><option>-package</option> <replaceable>name</replaceable></entry>
1045               <entry>Link in package <replaceable>name</replaceable></entry>
1046               <entry>static</entry>
1047               <entry>-</entry>
1048             </row>
1049             <row>
1050               <entry><option>-split-objs</option></entry>
1051               <entry>Split objects (for libraries)</entry>
1052               <entry>static</entry>
1053               <entry>-</entry>
1054             </row>
1055             <row>
1056               <entry><option>-static</option></entry>
1057               <entry>Use static Haskell libraries</entry>
1058               <entry>static</entry>
1059               <entry>-</entry>
1060             </row>
1061             <row>
1062               <entry><option>-no-hs-main</option></entry>
1063               <entry>Don't asssume this program contains <literal>main</literal></entry>
1064               <entry>static</entry>
1065               <entry>-</entry>
1066             </row>
1067           </tbody>
1068         </tgroup>
1069       </informaltable>
1070     </sect2>
1071
1072     <sect2>
1073       <title>Replacing phases (<xref linkend="replacing-phases">)</title>
1074
1075       <informaltable>
1076         <tgroup cols=3 align=left colsep=1 rowsep=1>
1077           <thead>
1078             <row>
1079               <entry>Flag</entry>
1080               <entry>Description</entry>
1081               <entry>Static/Dynamic</entry>
1082               <entry>Reverse</entry>
1083             </row>
1084           </thead>
1085           <tbody>
1086             <row>
1087               <entry><option>-pgmL</option> <replaceable>cmd</replaceable></entry>
1088               <entry>Use <replaceable>cmd</replaceable> as the literate pre-processor</entry>
1089               <entry>static</entry>
1090               <entry>-</entry>
1091             </row>
1092             <row>
1093               <entry><option>-pgmP</option> <replaceable>cmd</replaceable></entry>
1094               <entry>Use <replaceable>cmd</replaceable> as the C
1095               pre-processor (with <option>-cpp</option> only)</entry>
1096               <entry>static</entry> <entry>-</entry>
1097             </row>
1098             <row>
1099               <entry><option>-pgmc</option> <replaceable>cmd</replaceable></entry>
1100               <entry>Use <replaceable>cmd</replaceable> as the C compiler</entry>
1101               <entry>static</entry>
1102               <entry>-</entry>
1103             </row>
1104             <row>
1105               <entry><option>-pgma</option> <replaceable>cmd</replaceable></entry>
1106               <entry>Use <replaceable>cmd</replaceable> as the assembler</entry>
1107               <entry>static</entry>
1108               <entry>-</entry>
1109             </row>
1110             <row>
1111               <entry><option>-pgml</option> <replaceable>cmd</replaceable></entry>
1112               <entry>Use <replaceable>cmd</replaceable> as the linker</entry>
1113               <entry>static</entry>
1114               <entry>-</entry>
1115             </row>
1116             <row>
1117               <entry><option>-pgmdll</option> <replaceable>cmd</replaceable></entry>
1118               <entry>Use <replaceable>cmd</replaceable> as the DLL generator</entry>
1119               <entry>static</entry>
1120               <entry>-</entry>
1121             </row>
1122             <row>
1123               <entry><option>-pgmdep</option> <replaceable>cmd</replaceable></entry>
1124               <entry>Use <replaceable>cmd</replaceable> as the dependency generator</entry>
1125               <entry>static</entry>
1126               <entry>-</entry>
1127             </row>
1128           </tbody>
1129         </tgroup>
1130       </informaltable>
1131       <indexterm><primary><option>-pgmL</option></primary></indexterm>
1132       <indexterm><primary><option>-pgmP</option></primary></indexterm>
1133       <indexterm><primary><option>-pgmc</option></primary></indexterm>
1134       <indexterm><primary><option>-pgma</option></primary></indexterm>
1135       <indexterm><primary><option>-pgml</option></primary></indexterm>
1136       <indexterm><primary><option>-pgmdll</option></primary></indexterm>
1137       <indexterm><primary><option>-pgmdep</option></primary></indexterm>
1138
1139     </sect2>
1140
1141     <sect2>
1142       <title>Forcing options to particular phases (<xref linkend="forcing-options-through">)</title>
1143
1144       <informaltable>
1145         <tgroup cols=3 align=left colsep=1 rowsep=1>
1146           <thead>
1147             <row>
1148               <entry>Flag</entry>
1149               <entry>Description</entry>
1150               <entry>Static/Dynamic</entry>
1151               <entry>Reverse</entry>
1152             </row>
1153           </thead>
1154           <tbody>
1155             <row>
1156               <entry><option>-optL</option> <replaceable>option</replaceable></entry>
1157               <entry>pass <replaceable>option</replaceable> to the literate pre-processor</entry>
1158               <entry>dynamic</entry>
1159               <entry>-</entry>
1160             </row>
1161             <row>
1162               <entry><option>-optP</option> <replaceable>option</replaceable></entry>
1163               <entry>pass <replaceable>option</replaceable> to cpp (with
1164               <option>-cpp</option> only)</entry>
1165               <entry>dynamic</entry>
1166               <entry>-</entry>
1167             </row>
1168             <row>
1169               <entry><option>-optc</option> <replaceable>option</replaceable></entry>
1170               <entry>pass <replaceable>option</replaceable> to the C compiler</entry>
1171               <entry>dynamic</entry>
1172               <entry>-</entry>
1173             </row>
1174             <row>
1175               <entry><option>-opta</option> <replaceable>option</replaceable></entry>
1176               <entry>pass <replaceable>option</replaceable> to the assembler</entry>
1177               <entry>dynamic</entry>
1178               <entry>-</entry>
1179             </row>
1180             <row>
1181               <entry><option>-optl</option> <replaceable>option</replaceable></entry>
1182               <entry>pass <replaceable>option</replaceable> to the linker</entry>
1183               <entry>static</entry>
1184               <entry>-</entry>
1185             </row>
1186             <row>
1187               <entry><option>-optdll</option> <replaceable>option</replaceable></entry>
1188               <entry>pass <replaceable>option</replaceable> to the DLL generator</entry>
1189               <entry>static</entry>
1190               <entry>-</entry>
1191             </row>
1192             <row>
1193               <entry><option>-optdep</option> <replaceable>option</replaceable></entry>
1194               <entry>pass <replaceable>option</replaceable> to the dependency generator</entry>
1195               <entry>static</entry>
1196               <entry>-</entry>
1197             </row>
1198           </tbody>
1199         </tgroup>
1200       </informaltable>
1201     </sect2>
1202
1203     <sect2>
1204       <title>Platform-specific options (<xref linkend="options-platform">)</title>
1205       
1206       <informaltable>
1207         <tgroup cols=3 align=left colsep=1 rowsep=1>
1208           <thead>
1209             <row>
1210               <entry>Flag</entry>
1211               <entry>Description</entry>
1212               <entry>Static/Dynamic</entry>
1213               <entry>Reverse</entry>
1214             </row>
1215           </thead>
1216           <tbody>
1217             <row>
1218               <entry><option>-mv8</option></entry>
1219               <entry>(SPARC only) enable version 8 support</entry>
1220               <entry>static</entry>
1221               <entry>-</entry>
1222             </row>
1223             <row>
1224               <entry><option>-monly-[32]-regs</option></entry>
1225               <entry>(x86 only) give some registers back to the C compiler</entry>
1226               <entry>dynamic</entry>
1227               <entry>-</entry>
1228             </row>
1229           </tbody>
1230         </tgroup>
1231       </informaltable>
1232     </sect2>
1233
1234     <sect2>
1235       <title>Compiler debugging options (<xref linkend="options-debugging">)</title>
1236
1237       <informaltable>
1238         <tgroup cols=3 align=left colsep=1 rowsep=1>
1239           <thead>
1240             <row>
1241               <entry>Flag</entry>
1242               <entry>Description</entry>
1243               <entry>Static/Dynamic</entry>
1244               <entry>Reverse</entry>
1245             </row>
1246           </thead>
1247           <tbody>
1248             <row>
1249               <entry><option>-dcore-lint</option></entry>
1250               <entry>Turn on internal sanity checking</entry>
1251               <entry>dynamic</entry>
1252               <entry>-</entry>
1253             </row>
1254             <row>
1255               <entry><option>-ddump-absC</option></entry>
1256               <entry>Dump abstract C</entry>
1257               <entry>dynamic</entry>
1258               <entry>-</entry>
1259             </row>
1260             <row>
1261               <entry><option>-ddump-asm</option></entry>
1262               <entry>Dump assembly</entry>
1263               <entry>dynamic</entry>
1264               <entry>-</entry>
1265             </row>
1266             <row>
1267               <entry><option>-ddump-bcos</option></entry>
1268               <entry>Dump interpreter byte code</entry>
1269               <entry>dynamic</entry>
1270               <entry>-</entry>
1271             </row>
1272             <row>
1273               <entry><option>-ddump-cpranal</option></entry>
1274               <entry>Dump output from CPR analysis</entry>
1275               <entry>dynamic</entry>
1276               <entry>-</entry>
1277             </row>
1278             <row>
1279               <entry><option>-ddump-cse</option></entry>
1280               <entry>Dump CSE output</entry>
1281               <entry>dynamic</entry>
1282               <entry>-</entry>
1283             </row>
1284             <row>
1285               <entry><option>-ddump-deriv</option></entry>
1286               <entry>Dump deriving output</entry>
1287               <entry>dynamic</entry>
1288               <entry>-</entry>
1289             </row>
1290             <row>
1291               <entry><option>-ddump-ds</option></entry>
1292               <entry>Dump desugarer output</entry>
1293               <entry>dynamic</entry>
1294               <entry>-</entry>
1295             </row>
1296             <row>
1297               <entry><option>-ddump-flatC</option></entry>
1298               <entry>Dump &ldquo;flat&rdquo; C</entry>
1299               <entry>dynamic</entry>
1300               <entry>-</entry>
1301             </row>
1302             <row>
1303               <entry><option>-ddump-foreign</option></entry>
1304               <entry>Dump <literal>foreign export</literal> stubs</entry>
1305               <entry>dynamic</entry>
1306               <entry>-</entry>
1307             </row>
1308             <row>
1309               <entry><option>-ddump-inlinings</option></entry>
1310               <entry>Dump inlining info</entry>
1311               <entry>dynamic</entry>
1312               <entry>-</entry>
1313             </row>
1314             <row>
1315               <entry><option>-ddump-occur-anal</option></entry>
1316               <entry>Dump occurrence analysis output</entry>
1317               <entry>dynamic</entry>
1318               <entry>-</entry>
1319             </row>
1320             <row>
1321               <entry><option>-ddump-parsed</option></entry>
1322               <entry>Dump parse tree</entry>
1323               <entry>dynamic</entry>
1324               <entry>-</entry>
1325             </row>
1326             <row>
1327               <entry><option>-ddump-realC</option></entry>
1328               <entry>Dump &ldquo;real&rdquo; C</entry>
1329               <entry>dynamic</entry>
1330               <entry>-</entry>
1331             </row>
1332             <row>
1333               <entry><option>-ddump-rn</option></entry>
1334               <entry>Dump renamer output</entry>
1335               <entry>dynamic</entry>
1336               <entry>-</entry>
1337             </row>
1338             <row>
1339               <entry><option>-ddump-rules</option></entry>
1340               <entry>Dump rules</entry>
1341               <entry>dynamic</entry>
1342               <entry>-</entry>
1343             </row>
1344             <row>
1345               <entry><option>-ddump-sat</option></entry>
1346               <entry>Dump saturated output</entry>
1347               <entry>dynamic</entry>
1348               <entry>-</entry>
1349             </row>
1350             <row>
1351               <entry><option>-ddump-simpl</option></entry>
1352               <entry>Dump final simplifier output</entry>
1353               <entry>dynamic</entry>
1354               <entry>-</entry>
1355             </row>
1356             <row>
1357               <entry><option>-ddump-simpl-iterations</option></entry>
1358               <entry>Dump output from each simplifier iteration</entry>
1359               <entry>dynamic</entry>
1360               <entry>-</entry>
1361             </row>
1362             <row>
1363               <entry><option>-ddump-spec</option></entry>
1364               <entry>Dump specialiser output</entry>
1365               <entry>dynamic</entry>
1366               <entry>-</entry>
1367             </row>
1368             <row>
1369               <entry><option>-ddump-stg</option></entry>
1370               <entry>Dump final STG</entry>
1371               <entry>dynamic</entry>
1372               <entry>-</entry>
1373             </row>
1374             <row>
1375               <entry><option>-ddump-stranal</option></entry>
1376               <entry>Dump strictness analyser output</entry>
1377               <entry>dynamic</entry>
1378               <entry>-</entry>
1379             </row>
1380             <row>
1381               <entry><option>-ddump-tc</option></entry>
1382               <entry>Dump typechecker output</entry>
1383               <entry>dynamic</entry>
1384               <entry>-</entry>
1385             </row>
1386             <row>
1387               <entry><option>-ddump-types</option></entry>
1388               <entry>Dump type signatures</entry>
1389               <entry>dynamic</entry>
1390               <entry>-</entry>
1391             </row>
1392             <row>
1393               <entry><option>-ddump-usagesp</option></entry>
1394               <entry>Dump UsageSP analysis output</entry>
1395               <entry>dynamic</entry>
1396               <entry>-</entry>
1397             </row>
1398             <row>
1399               <entry><option>-ddump-worker-wrapper</option></entry>
1400               <entry>Dump worker-wrapper output</entry>
1401               <entry>dynamic</entry>
1402               <entry>-</entry>
1403             </row>
1404             <row>
1405               <entry><option>-ddump-rn-trace</option></entry>
1406               <entry>Trace renamer</entry>
1407               <entry>dynamic</entry>
1408               <entry>-</entry>
1409             </row>
1410             <row>
1411               <entry><option>-ddump-rn-stats</option></entry>
1412               <entry>Renamer stats</entry>
1413               <entry>dynamic</entry>
1414               <entry>-</entry>
1415             </row>
1416             <row>
1417               <entry><option>-ddump-stix</option></entry>
1418               <entry>Native code generator intermediate form</entry>
1419               <entry>dynamic</entry>
1420               <entry>-</entry>
1421             </row>
1422             <row>
1423               <entry><option>-ddump-simpl-stats</option></entry>
1424               <entry>Dump simplifier stats</entry>
1425               <entry>dynamic</entry>
1426               <entry>-</entry>
1427             </row>
1428             <row>
1429               <entry><option>-dppr-debug</option></entry>
1430               <entry>Turn on debug printing (more verbose)</entry>
1431               <entry>static</entry>
1432               <entry>-</entry>
1433             </row>
1434             <row>
1435               <entry><option>-dppr-noprags</option></entry>
1436               <entry>Don't output pragma info in dumps</entry>
1437               <entry>static</entry>
1438               <entry>-</entry>
1439             </row>
1440             <row>
1441               <entry><option>-dppr-user-length</option></entry>
1442               <entry>Set the depth for printing expressions in error msgs</entry>
1443               <entry>static</entry>
1444               <entry>-</entry>
1445             </row>
1446             <row>
1447               <entry><option>-dsource-stats</option></entry>
1448               <entry>Dump haskell source stats</entry>
1449               <entry>dynamic</entry>
1450               <entry>-</entry>
1451             </row>
1452             <row>
1453               <entry><option>-dstg-lint</option></entry>
1454               <entry>STG pass sanity checking</entry>
1455               <entry>dynamic</entry>
1456               <entry>-</entry>
1457             </row>
1458             <row>
1459               <entry><option>-dstg-stats</option></entry>
1460               <entry>Dump STG stats</entry>
1461               <entry>dynamic</entry>
1462               <entry>-</entry>
1463             </row>
1464             <row>
1465               <entry><option>-dusagesp-lint</option></entry>
1466               <entry>UsageSP sanity checker</entry>
1467               <entry>dynamic</entry>
1468               <entry>-</entry>
1469             </row>
1470             <row>
1471               <entry><option>-dverbose-core2core</option></entry>
1472               <entry>Show output from each core-to-core pass</entry>
1473               <entry>dynamic</entry>
1474               <entry>-</entry>
1475             </row>
1476             <row>
1477               <entry><option>-dverbose-stg2stg</option></entry>
1478               <entry>Show output from each STG-to-STG pass</entry>
1479               <entry>dynamic</entry>
1480               <entry>-</entry>
1481             </row>
1482             <row>
1483               <entry><option>-unreg</option></entry>
1484               <entry>Enable unregisterised compilation</entry>
1485               <entry>static</entry>
1486               <entry>-</entry>
1487             </row>
1488           </tbody>
1489         </tgroup>
1490       </informaltable>
1491     </sect2>
1492       
1493     <sect2>
1494       <title>Misc compiler options</title>
1495
1496       <informaltable>
1497         <tgroup cols=3 align=left colsep=1 rowsep=1>
1498           <thead>
1499             <row>
1500               <entry>Flag</entry>
1501               <entry>Description</entry>
1502               <entry>Static/Dynamic</entry>
1503               <entry>Reverse</entry>
1504             </row>
1505           </thead>
1506           <tbody>
1507             <row>
1508               <entry><option>-funfold-casms-in-hi-file</option></entry>
1509               <entry>Allow casms in unfoldings</entry>
1510               <entry>static</entry>
1511               <entry>-</entry>
1512             </row>
1513             <row>
1514               <entry><option>-femit-extern-decls</option></entry>
1515               <entry>???</entry>
1516               <entry>static</entry>
1517               <entry>-</entry>
1518             </row>
1519             <row>
1520               <entry><option>-fglobalise-toplev-names</option></entry>
1521               <entry>Make all top-level names global (for <option>-split-objs</option>)</entry>
1522               <entry>static</entry>
1523               <entry>-</entry>
1524             </row>
1525             <row>
1526               <entry><option>-fno-hi-version-check</option></entry>
1527               <entry>Don't complain about <literal>.hi</literal> file mismatches</entry>
1528               <entry>static</entry>
1529               <entry>-</entry>
1530             </row>
1531             <row>
1532               <entry><option>-dno-black-holing</option></entry>
1533               <entry>Turn off black holing (probably doesn't work)</entry>
1534               <entry>static</entry>
1535               <entry>-</entry>
1536             </row>
1537             <row>
1538               <entry><option>-fno-method-sharing</option></entry>
1539               <entry>???</entry>
1540               <entry>static</entry>
1541               <entry>-</entry>
1542             </row>
1543             <row>
1544               <entry><option>-fno-prune-decls</option></entry>
1545               <entry>Renamer: don't prune declarations</entry>
1546               <entry>static</entry>
1547               <entry>-</entry>
1548             </row>
1549             <row>
1550               <entry><option>-fno-prune-tydecls</option></entry>
1551               <entry>Renamer: don't prune type declarations</entry>
1552               <entry>static</entry>
1553               <entry>-</entry>
1554             </row>
1555             <row>
1556               <entry><option>-fhistory-size</option></entry>
1557               <entry>Set simplification history size</entry>
1558               <entry>static</entry>
1559               <entry>-</entry>
1560             </row>
1561             <row>
1562               <entry><option>-funregisterised</option></entry>
1563               <entry>Unregisterised compilation (use <option>-unreg</option> instead)</entry>
1564               <entry>static</entry>
1565               <entry>-</entry>
1566             </row>
1567             <row>
1568               <entry><option>-fno-asm-mangling</option></entry>
1569               <entry>Turn off assembly mangling (use <option>-unreg</option> instead)</entry>
1570               <entry>static</entry>
1571               <entry>-</entry>
1572             </row>
1573           </tbody>
1574         </tgroup>
1575       </informaltable>
1576     </sect2>
1577   </sect1>
1578
1579
1580 <!--
1581 Still to document:
1582
1583 Misc:
1584   ,  ( "H"                 , HasArg (setHeapSize . fromIntegral . decodeSize) )
1585   ,  ( "Rghc-timing"       , NoArg  (enableTimingStats) )
1586
1587   -Bdir
1588 -->
1589
1590 <!-- Emacs stuff:
1591      ;;; Local Variables: ***
1592      ;;; mode: sgml ***
1593      ;;; sgml-parent-document: ("users_guide.sgml" "book" "chapter") ***
1594      ;;; End: ***
1595  -->