X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fdocs%2Fusers_guide%2Fphases.sgml;h=3fb17cf0312a96fda3fc3a9832c7291cbd7dac6d;hb=2dfd507259664e6f28df4a9467a8de34d01d70a0;hp=39e4ea4995b1a2843a846a5a1edbca008e50e365;hpb=dc801dc275fb8f81d482535b4d6317e234bb10f8;p=ghc-hetmet.git diff --git a/ghc/docs/users_guide/phases.sgml b/ghc/docs/users_guide/phases.sgml index 39e4ea4..3fb17cf 100644 --- a/ghc/docs/users_guide/phases.sgml +++ b/ghc/docs/users_guide/phases.sgml @@ -7,7 +7,7 @@ You may specify that a different program be used for one of the phases of the compilation system, in place of whatever - the ghc has wired into it. For example, you + the ghc has wired into it. For example, you might want to try a different assembler. The following options allow you to change the external program used for a given compilation phase: @@ -128,7 +128,7 @@ Pass option to the - custom pre-processor (see ). + custom pre-processor (see ). @@ -182,7 +182,7 @@ GHC is itself a Haskell program, so if you need to pass options directly to GHC's runtime system you can enclose them in +RTS ... -RTS (see ). + linkend="runtime-control"/>). @@ -218,7 +218,7 @@ macros passed to the C compiler when compiling via C! For those, use the hack… (see ). + linkend="forcing-options-through"/>). @@ -344,11 +344,11 @@ gaps vs -cpp. In other words, strings such as the following: - + strmod = "\ \ p \ \ " - + don't work with ; /usr/bin/cpp elides the backslash-newline @@ -426,9 +426,9 @@ strmod = "\ way to do this, but you can use this hack from the command-line: - + % ghc -c '-#include <X/Xlib.h>' Xstuff.lhs - + @@ -445,7 +445,7 @@ strmod = "\ fast), but may produce code that is slightly slower than compiling via C. is the default when optimisation is off (see ). + linkend="options-optimise"/>). @@ -543,7 +543,7 @@ strmod = "\ If you are using a Haskell “package” - (see ), don't forget to add the + (see ), don't forget to add the relevant option when linking the program too: it will cause the appropriate libraries to be linked in with the program. Forgetting the @@ -650,7 +650,7 @@ strmod = "\ be supplying its definition of main() at link-time, you will have to. To signal that to the compiler when linking, use - . See also . + . See also . Notice that since the command-line passed to the linker is rather involved, you probably want to use