Hello, > There is one _very_ serious problem with using GCC to compile Scheme, or > at least there was the last time I researched this issue: tail calls.
I might be wrong about this, but I thought that GCC supported multiple calling conventions, with the user telling GCC which one to use (cdecl, fastcall, possibly others). If so, it must have some way to represent that in its intermediate representations. We might be able to add our own calling convention. I also know that GCC has an --optimize-sibling-calls argument, which will make it do something similar to at least some regular C calls. I'm not sure if it's possible, but maybe we could arrange for whatever code transformation implements this to be run on every Scheme call. Noah