X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=docs%2Fusers_guide%2Fseparate_compilation.xml;h=099a91f8c32152281b09f1d6d8afcd488c8427e2;hb=478e69b303eb2e653a2ebf5c888b5efdfef1fb9d;hp=727a13365504b69faa7be866c8a15ad834116ecb;hpb=cd85694dcc3fd0cccbba84421185b41ae7fd762a;p=ghc-hetmet.git diff --git a/docs/users_guide/separate_compilation.xml b/docs/users_guide/separate_compilation.xml index 727a133..099a91f 100644 --- a/docs/users_guide/separate_compilation.xml +++ b/docs/users_guide/separate_compilation.xml @@ -440,6 +440,8 @@ $ ghc -c parse/Foo.hs parse/Bar.hs gurgle/Bumble.hs -odir `uname -m` .hc files, saving + .ll files, saving + .s files, saving @@ -459,37 +461,36 @@ $ ghc -c parse/Foo.hs parse/Bar.hs gurgle/Bumble.hs -odir `uname -m` 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 to force them - to be produced). + are only generated by unregisterised compilers). - , - - - + , + + + - Keep intermediate .s files. + Keep intermediate .ll files when + doing .hs-to-.o + compilations via LLVM (NOTE: .ll files + aren't generated when using the native code generator, you + may need to use to force them + to be produced). - , - - - + , + + + - 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 intermediate .s files. @@ -1025,15 +1026,7 @@ M.o : X.hi-boot option below). The dependency generation phase of GHC can take some - additional options, which you may find useful. For historical - reasons, each option passed to the dependency generator from - the GHC command line must be preceded by - -optdep. For example, to pass -f - .depend to the dependency generator, you say - - -ghc -M -optdep-f -optdep.depend ... - + additional options, which you may find useful. The options which affect dependency generation are: @@ -1042,15 +1035,7 @@ ghc -M -optdep-f -optdep.depend ... Display a list of the cycles in the module graph. This is - useful when trying to eliminate such cycles. You do not need the -optdep prefix - for this flag. - - - - - - - Turn off warnings about interface file shadowing. + useful when trying to eliminate such cycles. @@ -1066,14 +1051,14 @@ ghc -M -optdep-f -optdep.depend ... - file + file Use file as the makefile, rather than makefile or Makefile. If file doesn't exist, mkdependHS creates it. We often use - to put the dependencies in + to put the dependencies in .depend and then include the file .depend into @@ -1081,21 +1066,8 @@ ghc -M -optdep-f -optdep.depend ... - - + Make extra dependencies that declare that files with suffix @@ -1104,13 +1076,14 @@ ghc -M -optdep-f -optdep.depend ... .<suf>_hi, or (for {-# SOURCE #-} imports) on .hi-boot. Multiple - flags are permitted. For example, - will make dependencies - for .hc on + flags are permitted. For example, + + will make dependencies + for .hs on .hi, - .a_hc on + .a_hs on .a_hi, and - .b_hc on + .b_hs on .b_hi. (Useful in conjunction with NoFib "ways".) @@ -1126,35 +1099,6 @@ ghc -M -optdep-f -optdep.depend ... - - - same as - - - - - - Regard modules imported from packages as unstable, @@ -1279,7 +1223,6 @@ first line, GHC considers it an orphan module.