On Thu, 2007-04-05 at 04:43 +1000, skaller wrote: > Edit config/xlators_local.py: mine looks like this: > > #line 16 "./lpsrc/flx_config.pak" > # reconfigure translator definitions for your > # local system here > selected_xlators = [ > 'ocamlopt', > 'gccopt', > 'gnat', > 'gjc', > 'felix' > ]
BTW: Here are the xlators: [EMAIL PROTECTED]:/work/felix/svn/felix/felix/trunk$ less speed/xlators/ felix.py gcc_4_0_opt.py gcj.py gpc_2_1_3_3.py fpc_2_0_0.py gcc_4_0.py ghc_6_2_2.py gpp_3_3.py gcc_3_3_opt.py gccopt.py ghc_6_4_1.py gpp_4_0_opt.py gcc_3_3.py gcc.py ghc.py gpp_4_0.py gcc_3_4_opt.py gcj_4_0.py gnat_4_0.py ocamlb.py gcc_3_4.py gcj_4_1.py gnat.py ocamlopt.py [EMAIL PROTECTED]:/work/felix/svn/felix/felix/trunk$ cat \ speed/xlators/gcc_4_0_opt.py #line 964 "./lpsrc/flx_perf.pak" def mk(k,p): x = "gcc-4.0 -O3 -fomit-frame-pointer -funroll-loops " x = x + "-o speed/exes/%s/%s speed/src/c/%s.c" % (k,p,p) return x lang="c" [EMAIL PROTECTED]:/work/felix/svn/felix/felix/trunk$ cat \ speed/xlators/ghc.py #line 915 "./lpsrc/flx_perf.pak" # ----------- environment hack ------------------ env['GHCRTS']='-K8m -k1m' # set stack size for GHC def mk(k,p): return "ghc -O3 -fvia-C -optc -O1 -o speed/exes/%s/%s speed/src/haskell/%s.hs" % (k,p,p) lang="haskell" So basically an xlator is a Python function that returns a string which will invoke the compiler. -- John Skaller <skaller at users dot sf dot net> Felix, successor to C++: http://felix.sf.net ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Felix-language mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/felix-language
