From: Ian Lynagh Date: Tue, 29 Mar 2011 17:01:34 +0000 (+0000) Subject: Remove -fvia-C references from the users guide X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=f01386484ac20e8fbe9a0809e198396bff883142 Remove -fvia-C references from the users guide --- diff --git a/docs/users_guide/flags.xml b/docs/users_guide/flags.xml index 3920c8e..1a5e67e 100644 --- a/docs/users_guide/flags.xml +++ b/docs/users_guide/flags.xml @@ -1743,13 +1743,7 @@ phase n Use the native code generator dynamic - -fvia-C - - - - Compile via C - dynamic - -fasm + -fllvm diff --git a/docs/users_guide/phases.xml b/docs/users_guide/phases.xml index b48ebe8..6ed8de1 100644 --- a/docs/users_guide/phases.xml +++ b/docs/users_guide/phases.xml @@ -543,21 +543,8 @@ $ cat foo.hspp Use GHC's native code generator rather than - compiling via C. This will compile faster (up to twice as - fast), but may produce code that is slightly slower than - compiling via C. is the default. - - - - - - - - - - Compile via C instead of using the native code - generator. This is the default on architectures for which GHC - doesn't have a native code generator. + compiling via LLVM. + is the default. @@ -569,8 +556,8 @@ $ cat foo.hspp Compile via LLVM instead of using the native code generator. This will generally take slightly longer than the - native code generator to compile but quicker than compiling - via C. Produced code is generally the same speed or faster + native code generator to compile. + Produced code is generally the same speed or faster than the other two code generators. Compiling via LLVM requires LLVM version 2.7 or later to be on the path. diff --git a/docs/users_guide/separate_compilation.xml b/docs/users_guide/separate_compilation.xml index 9ce971d..ae0e80c 100644 --- a/docs/users_guide/separate_compilation.xml +++ b/docs/users_guide/separate_compilation.xml @@ -461,9 +461,7 @@ $ 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). diff --git a/docs/users_guide/sooner.xml b/docs/users_guide/sooner.xml index eb85878..ea3e306 100644 --- a/docs/users_guide/sooner.xml +++ b/docs/users_guide/sooner.xml @@ -163,18 +163,6 @@ should go here! - Compile via C and crank up GCC: - - The native code-generator is designed to be quick, not - mind-bogglingly clever. Better to let GCC have a go, as it - tries much harder on register allocation, etc. - - So, when we want very fast code, we use: . - - - - Overloaded functions are not your friend: Haskell's overloading (using type classes) is elegant, diff --git a/docs/users_guide/using.xml b/docs/users_guide/using.xml index 06862e7..05f1de4 100644 --- a/docs/users_guide/using.xml +++ b/docs/users_guide/using.xml @@ -1701,7 +1701,7 @@ f "2" = 2 We don't use a flag for day-to-day work. We use to get respectable speed; e.g., when we want to measure something. When we want to go for - broke, we tend to use (and we go for + broke, we tend to use (and we go for lots of coffee breaks). The easiest way to see what (etc.)