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