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