At 20.29 +0100 0-09-08, Keith Wansbrough wrote:
>Your .hs file is (optionally) preprocessed using the C preprocessor. This
>is then compiled using hsc (the GHC compiler proper) to generate a .hc
>file. This (with some slight preprocessing) is compiled using gcc -S to
>generate a .S (native assembly) file. A Perl script then hacks away at
>this, removing procedure entry and exit code and doing other munging the
>details of which Julian knows and I don't. The GNU assumbler is then run
>on the resulting assembly file, generating the .o file.
As for the Mac port, there is the Tenon Mach 2.5/4.4BSD (same combination
as in MacOS X -- Apple may have bought it from Tenon) running under pre-X
MacOS, that comes with all the standard UNIX tools, including GCC & Perl (I
used to run it, but had to throw it out because of lack of hard disk
space). GCC compiles into local Apple formats for MacOS. So if these tools
will also somehow be available under MacOS X, it should be possible to do a
GCC port.
But why cannot the stuff in a .hc file be directly compiled with any
C-compiler into a binary format, and executed directly? Does it have to do
with some special kind of needed file merging?
Hans Aberg
* Email: Hans Aberg <mailto:[EMAIL PROTECTED]>
* Home Page: <http://www.matematik.su.se/~haberg/>
* AMS member listing: <http://www.ams.org/cml/>