From: simonmar Date: Thu, 24 Jun 2004 08:44:35 +0000 (+0000) Subject: [project @ 2004-06-24 08:44:35 by simonmar] X-Git-Tag: Initial_conversion_from_CVS_complete~1791 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=5617b9287e0d8b95ecca77d2e5d167e5d478fa70;p=ghc-hetmet.git [project @ 2004-06-24 08:44:35 by simonmar] Add FAQ item: how to compile a program with and without profiling in the same directory. --- diff --git a/ghc/docs/users_guide/faq.sgml b/ghc/docs/users_guide/faq.sgml index 25bf694..4c6bc43 100644 --- a/ghc/docs/users_guide/faq.sgml +++ b/ghc/docs/users_guide/faq.sgml @@ -419,7 +419,26 @@ details. + + How do I compile my program for profiling without + overwriting the object files and hi files + I've already built? + + You can select alternative suffixes for object files and + interface files, so you can have several builds of the same + code coexisting in the same directory. For example, to + compile with profiling, you might do this: + + ghc --make -prof -o foo-prof -osuf p.o -hisuf p.hi Main + + See for more details on + the and + options. + + + +