Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
05a9c035
Commit
05a9c035
authored
Oct 11, 2002
by
simonpj
Browse files
[project @ 2002-10-11 08:04:55 by simonpj]
Add an example about -osuf etc
parent
a8cf15f2
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/docs/users_guide/using.sgml
View file @
05a9c035
...
...
@@ -682,12 +682,16 @@ ghc ––make Main.hs
intermediate C files.</para>
<para>The <option>-hisuf</option>/<option>-osuf</option>
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 <filename>.hi</filename>/<filename>.o</filename>
suffixes; add <option>-hisuf g_hi -osuf
g_o</option> to your <command>make</command> rule for
GHC compiling…</para>
game is particularly useful if you want to compile a program both with and without
profiling, in the same directory. You can say:
<Screen>
ghc ...
</Screen>
to get the ordinary version, and
<Screen>
ghc ... -osuf prof.o -hisuf prof.hi -prof -auto-all
</Screen>
to get the profiled version.</para>
</listitem>
</varlistentry>
</variablelist>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment