Re: GLIL->C compilation

2010-11-20 Thread Andy Wingo
On Sat 20 Nov 2010 00:56, l...@gnu.org (Ludovic Courtès) writes: >> Yes on one of my machine one loop takes about 6ns for the compiled one and >> about 50ns for the bytcode, say a factor of 7-10 for simple tasks, but >> remember >> this is for rather trivial work. > > Woow, I didn’t expect so mu

Re: GLIL->C compilation

2010-11-19 Thread Ludovic Courtès
Stefan Israelsson Tampe writes: > On Saturday, November 20, 2010 12:11:16 am Ludovic Courtès wrote: >> Hi, >> >> Stefan Israelsson Tampe writes: >> > #include "cfkn.h" >> > #define LOCAL_REF(i) fp[i] >> > #define LOCAL_SET(i,v) fp[i] = (v) >> > void cfkn3676(SCM *fp, SCM **spp) >> > { >>

Re: GLIL->C compilation

2010-11-19 Thread Stefan Israelsson Tampe
On Saturday, November 20, 2010 12:11:16 am Ludovic Courtès wrote: > Hi, > > Stefan Israelsson Tampe writes: > > #include "cfkn.h" > > #define LOCAL_REF(i) fp[i] > > #define LOCAL_SET(i,v) fp[i] = (v) > > void cfkn3676(SCM *fp, SCM **spp) > > { > > > > /* setup of environment */ > > SCM *

GLIL->C compilation

2010-11-19 Thread Ludovic Courtès
Hi, Stefan Israelsson Tampe writes: > #include "cfkn.h" > #define LOCAL_REF(i) fp[i] > #define LOCAL_SET(i,v) fp[i] = (v) > void cfkn3676(SCM *fp, SCM **spp) > { > /* setup of environment */ > SCM *objects, *free, program, *sp, sss[100]; > sp = sss; > program = fp[-1]; > objects = SCM