From a11a320dc5900eb9b98ac3f4d929082be538f3f1 Mon Sep 17 00:00:00 2001 From: simonmar Date: Tue, 23 Sep 2003 16:01:22 +0000 Subject: [PATCH] [project @ 2003-09-23 16:01:22 by simonmar] Some wibbles to the optimisation section. --- ghc/docs/users_guide/using.sgml | 31 ++++++++++++++----------------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index 076dd2c..0abae40 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -105,14 +105,9 @@ module X where pragma in a source file or set from the GHCi command-line with :set. - As a rule of thumb, all the language options are dynamic, as - are the warning options and the debugging options. The rest are - static, with the notable exceptions of , - , , - , and . - - The flag reference tables () lists - the status of each flag. + As a rule of thumb, options which relate to filenames are + static, and the rest are dynamic. The flag reference tables () lists the status of each flag. @@ -1016,13 +1011,11 @@ f "2" = 2 following “packages” of optimisations (or lack thereof) should suffice. - Once you choose a - “package,” stick with it—don't chop and - change. Modules' interfaces will change - with a shift to a new option, and you may - have to recompile a large chunk of all importing modules before - your program can again be run safely (see ). + Note that higher optimisation levels cause more + cross-module optimisation to be performed, which can have an + impact on how much of your program needs to be recompiled when + you change something. This is one reaosn to stick to + no-optimisation when developing code. @@ -1059,6 +1052,10 @@ f "2" = 2 Means: “Generate good-quality code without taking too long about it.” Thus, for example: ghc -c -O Main.lhs + + currently also implies + . This may change in the + future. @@ -1087,7 +1084,7 @@ f "2" = 2 -Ofile <file> option optimising, customised - (NOTE: not supported yet in GHC 5.x. Please ask if + (NOTE: not supported since GHC 4.x. Please ask if you're interested in this.) For those who need absolute @@ -1109,7 +1106,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.) -- 1.7.10.4