Commit 5617b928 authored by simonmar's avatar simonmar
Browse files

[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.
parent 57c58a20
...@@ -419,7 +419,26 @@ details.</para> ...@@ -419,7 +419,26 @@ details.</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
<term>How do I compile my program for profiling without
overwriting the object files and <literal>hi</literal> files
I've already built?</term>
<para>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:</para>
<screen>ghc --make -prof -o foo-prof -osuf p.o -hisuf p.hi Main</screen>
<para>See <xref linkend="options-output"> for more details on
the <option>-osuf</option> and <option>-hisuf</option>
</variablelist> </variablelist>
</chapter> </chapter>
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment