5 -- make ilxGen/IlxGen.o hsc
8 -- (cd /devel/fcom/src; make bin/ilxasm.exe)
11 -- (cd ilxGen/tests; ../../../driver/ghc-inplace --ilx test.hs)
15 -- To generate a complete ILX file, including preludes for GHC and ILX:
16 -- (cd ilxGen/tests/; cat prelude.ilx test.ilx /devel/fcom/src/ilxasm/stdlib-func.ilx > test.full.ilx)
18 -- Run ILXASM to get a IL
19 -- ( cd ilxGen/tests/; /devel/fcom/src/bin/ilxasm.exe --no-ilasm --no-stdlib test.full.ilx > test.il)
21 -- To compile IL to .EXE or .DLL:
22 -- With build of VS (e.g. Don & Andrew)
23 -- ( cd ilxGen/tests/; cmd /C "c:\\bin\\devvs.bat && ilasm test.il")
24 -- With Lightning SDK, where env. variables are on path (e.g. Reuben):
25 -- ( cd ilxGen/tests/; ilasm test.il)
28 -- (cd /devel/fcom/src; make bin/ilvalid.exe mscorlib.vlb)
29 -- (export ILVALID_HOME=/devel/fcom/src; cd ilxGen/tests/; /devel/fcom/src/bin/ilvalid.exe test.il)
31 -- To run unverifiable code:
32 -- With build of VS (e.g. Don & Andrew)
33 -- (cd ilxGen/tests/; cmd /C "c:\\bin\\devvs.bat && .\test.exe")
34 -- With Lightning SDK, where env. variables are on path (e.g. Reuben):
35 -- (cd ilxGen/tests/; ./test.exe)
37 -- To compile ILX to verifiable code and verify
38 -- (cd /devel/fcom/src; make bin/ilxasm.exe bin/ilverify.exe) && (cd ilxGen/tests/; export ILVALID_HOME=/devel/fcom/src; cat prelude.ilx test.ilx /devel/fcom/src/assem/stdlib-func.ilx > test.full.ilx && cd ilxGen/tests/; /devel/fcom/src/bin/ilxasm.exe --no-ilasm test.full.ilx > test.safe.il && /devel/fcom/src/bin/ilverify.exe test.safe.il)
40 -- (cd ilxGen/tests/; cmd /C "c:\\bin\\devvs.bat && .\test.safe.exe")
42 --append:: [Char] -> [Char] -> [Char]
44 --append (h:t) l2 = h:append t l2
62 S nn -> add m (mul nn m)
67 S mm -> mul n (pow n mm)
86 main = putStr (chooseN bign1)