Commit 7be2acc7 authored by simonpj's avatar simonpj
Browse files

[project @ 2002-09-26 09:01:34 by simonpj]

Notes on .exe files
parent 9ed15276
...@@ -574,6 +574,16 @@ ghc ––make Main.hs ...@@ -574,6 +574,16 @@ ghc ––make Main.hs
counterintuitive: <command>ghc -C -o foo.o foo.hs</command> counterintuitive: <command>ghc -C -o foo.o foo.hs</command>
will put the intermediate C code in the file will put the intermediate C code in the file
<filename>foo.o</filename>, name notwithstanding!</para> <filename>foo.o</filename>, name notwithstanding!</para>
<para>Note: on Windows, if the result is an executable file, the
extension "<filename>.exe</filename>" is added if the specified filename
does not already have an extension. Thus
<programlisting>
ghc -o foo Main.hs
</programlisting>
will compile and link the module <filename>Main.hs</filename>, and put the
resulting executable in <filename>foo.exe</filename> (not <filename>foo</filename>).
</para>
</listitem> </listitem>
</varlistentry> </varlistentry>
......
Markdown is supported
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