From 05a9c035960327b23bad8d8dc501141b183f33b5 Mon Sep 17 00:00:00 2001 From: simonpj Date: Fri, 11 Oct 2002 08:04:55 +0000 Subject: [PATCH] [project @ 2002-10-11 08:04:55 by simonpj] Add an example about -osuf etc --- ghc/docs/users_guide/using.sgml | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) 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. -- 1.7.10.4