
Hi, I need to have a .ycr (YHC core) file generated for each .hbc file that is generated when building YHC (prelude, packages). I am guessing, I have to add the -corep option somewhere in Scons building scripts. Can this be done in a single place (toplevel SConstruct), or in multiple? In general it would be nice to make core autobuilding as an option, i. e. when "core" appears in the scons command line then generate binary core files along with bytecode files (by appending that -corep option where appropriate). PS I am not very much familiar with Python and Scons. I tried hard to see where YHC commandline flags are set to generate bytecodes for prelude and packages, but couldn't find that out. Thanks for any advice. -- Dimitry Golubovsky Anywhere on the Web

Hi Dimitry,
I need to have a .ycr (YHC core) file generated for each .hbc file that is generated when building YHC (prelude, packages). I am guessing, I have to add the -corep option somewhere in Scons building scripts. Can this be done in a single place (toplevel SConstruct), or in multiple?
See http://haskell.org/haskellwiki/Yhc/Building#Scons_Options, in particular core=1 - I needed this too! Put it on the command line, or in options.txt so its always there. Thanks Neil

Hi Dimitry, This information is also in http://haskell.org/haskellwiki/Yhc/API/Core, which gives some info on playing with the Core (feel free to expand it!) Thanks Neil
participants (2)
-
Dimitry Golubovsky
-
Neil Mitchell