From: simonpj Date: Fri, 11 Oct 2002 08:04:55 +0000 (+0000) Subject: [project @ 2002-10-11 08:04:55 by simonpj] X-Git-Tag: Approx_11550_changesets_converted~1570 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=05a9c035960327b23bad8d8dc501141b183f33b5;p=ghc-hetmet.git [project @ 2002-10-11 08:04:55 by simonpj] Add an example about -osuf etc --- diff --git a/ghc/docs/users_guide/using.sgml b/ghc/docs/users_guide/using.sgml index c346be5..cf0b95a 100644 --- a/ghc/docs/users_guide/using.sgml +++ b/ghc/docs/users_guide/using.sgml @@ -682,12 +682,16 @@ ghc ––make Main.hs intermediate C files. The / - game is useful if you want to compile a program with both - GHC and HBC (say) in the same directory. Let HBC use the - standard .hi/.o - suffixes; add to your make rule for - GHC compiling… + game is particularly useful if you want to compile a program both with and without + profiling, in the same directory. You can say: + + ghc ... + + to get the ordinary version, and + + ghc ... -osuf prof.o -hisuf prof.hi -prof -auto-all + + to get the profiled version.