[gambit-list] Does gambit-c have call/ec?
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:
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