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