[[project @ 2000-07-14 09:03:57 by simonmar]
simonmar**20000714090357
- add a new section on "keeping intermediate files"
- document the new -keep-tmp-files and -keep-raw-s-file options.
] {
hunk ./ghc/docs/users_guide/using.sgml 361
-
-FURTHER EXOTICA: If you are doing a normal .hs-to-.o compilation
-but would like to hang onto the intermediate .hc C file, just
-throw in a option-keep-hc-file-too option.
-If you would like to look at the assembler output, toss in a
-,-keep-s-file-too option too.
-
+
+ Keeping Intermediate Files
+ intermediate files, saving
+
+ .hc files, saving
+
+ .s files, saving
+
+
+ The following options are useful for keeping certain
+ intermediate files around, when normally GHC would throw these
+ away after compilation:
+
+
+
+ -keep-hc-files
+
+ -keep-hc-files
+
+
+ Keep intermediate .hc files when
+ doing .hs-to-.o
+ compilations via C (NOTE: .hc files
+ aren't generated when using the native code generator, you
+ may need to use -fvia-C to force them
+ to be produced).
+
+
+
+
+ -keep-s-files
+
+ -keep-s-files
+
+
+ Keep intermediate .s files.
+
+
+
+
+ -keep-raw-s-files
+
+ -keep-raw-s-files
+
+
+ Keep intermediate .raw-s files.
+ These are the direct output from the C compiler, before
+ GHC does “assembly mangling” to produce the
+ .s file. Again, these are not produced
+ when using the native code generator.
+
+
+
+
+ -keep-tmp-files
+
+ -keep-tmp-files
+
+
+ temporary files
+ keeping
+
+
+ Instructs the GHC driver not to delete any of its
+ temporary files, which it normally keeps in
+ /tmp (or possibly elsewhere; see ). Running GHC with
+ -v will show you what temporary files
+ were generated along the way.
+
+
+
+
hunk ./ghc/docs/users_guide/using.sgml 456
-
-temporary files, redirecting
-
+
+ temporary files
+ redirecting
+
hunk ./ghc/docs/users_guide/using.sgml 462
-If you have trouble because of running out of space in /tmp (or
-wherever your installation thinks temporary files should go), you may
-use the -tmpdir <dir> option option
-to specify an alternate directory. For example, says to
-put temporary files in the current working directory.
+If you have trouble because of running out of space in
+/tmp (or wherever your installation thinks
+temporary files should go), you may use the -tmpdir <dir>
+option option to specify an alternate directory.
+For example, says to put temporary files in
+the current working directory.
hunk ./ghc/docs/users_guide/using.sgml 472
-Alternatively, use your TMPDIR environment variable.TMPDIR
-environment variable Set it to the name of the directory where
-temporary files should be put. GCC and other programs will honour the
-TMPDIR variable as well.
+Alternatively, use your TMPDIR environment
+variable.TMPDIR environment
+variable Set it to the name of the directory
+where temporary files should be put. GCC and other programs will
+honour the TMPDIR variable as well.
}