From 5617b9287e0d8b95ecca77d2e5d167e5d478fa70 Mon Sep 17 00:00:00 2001 From: simonmar Date: Thu, 24 Jun 2004 08:44:35 +0000 Subject: [PATCH] [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. --- ghc/docs/users_guide/faq.sgml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) 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. + + + + -- 1.7.10.4