
Hello, So I admit that I'm not really that familiar with how Yhc works yet, but I was wondering if anyone had ever tried/considered making the Yhc runtime work on bare metal? It seems like this would just involve using a modified version of the BCKernel but everything else should be able to stay the same since the rest involves compiling to byte code? I have no idea how hard that is, but it seems like it'd be almost more feasible than reworking h0p/House to work with more recent GHCs. Cheers, Creighton

On Fri, Jun 15, 2007 at 02:41:28PM -0500, Creighton Hogg wrote:
Hello, So I admit that I'm not really that familiar with how Yhc works yet, but I was wondering if anyone had ever tried/considered making the Yhc runtime work on bare metal? It seems like this would just involve using a modified version of the BCKernel but everything else should be able to stay the same since the rest involves compiling to byte code? I have no idea how hard that is, but it seems like it'd be almost more feasible than reworking h0p/House to work with more recent GHCs.
Indeed it would be simple. The biggest issue would likely be that you would need to write much of a C OS in order to load bytecode files; my Ayhi design (unfortunately stalled ATM) avoids this issue by doing bytecode loading in Haskell. Stefan

Hi Creighton, Indeed probably the simplest way to do it would to write a minimal subset of the standard C library (the bits that Yhc uses) and link yhi against it. You could simply use empty definitions for the bits you didn't intend to use. Cheers Tom Creighton Hogg wrote:
Hello, So I admit that I'm not really that familiar with how Yhc works yet, but I was wondering if anyone had ever tried/considered making the Yhc runtime work on bare metal? It seems like this would just involve using a modified version of the BCKernel but everything else should be able to stay the same since the rest involves compiling to byte code? I have no idea how hard that is, but it seems like it'd be almost more feasible than reworking h0p/House to work with more recent GHCs.
Cheers, Creighton
------------------------------------------------------------------------
_______________________________________________ Yhc mailing list Yhc@haskell.org http://www.haskell.org/mailman/listinfo/yhc
participants (3)
-
Creighton Hogg
-
Stefan O'Rear
-
Thomas Shackell