[gambit-list] Does gambit-c have call/ec?

Marc Feeley feeley at iro.umontreal.ca
Wed Jun 27 14:26:29 EDT 2007

On 27-Jun-07, at 11:52 AM, naruto canada wrote:

> I don't really understand call/cc or call/ec to be honest. All I know
> is that I only use call/cc
> for "early abort (return)" purpose. (also for "amb"). Someone from
> comp.lang.scheme suggests I use call/ec.
> I get a good improvement with mzscheme so I am wondering if gambit-c
> has the same function.
> You can look at this thread:
> http://groups.google.com/group/comp.lang.scheme/browse_thread/ 
> thread/ec1460818c10971f/f9640e6e9396dcac#f9640e6e9396dcac

I've briefly looked at your code.  It appears that you are running  
the code (accu.sc) *interpreted* (your file top.sc, which you do  
compile, is a read-eval-print loop which calls eval, so the code from  
accu.sc which you pipe to "top" will be interpreted).  You should get  
much better performance with Gambit if you compile the accu.sc  
program directly with gsc.


More information about the Gambit-list mailing list