User loginNavigation |
archivesCompiling tail-calls to simple C?I'm writing a Lisp-to-C compiler, trying to keep compiler and runtime very simple and close to C, because I want to embed the language into C applications, and use C libraries. My closures are structs with a C function pointer and an environment. Ideally, I'd like the language to be properly tail-recursive like Scheme; however, without resorting to techniques like trampolines, Cheney on the M.T.A., or putting the whole program into one function, it seems that the only possible thing is what BitC does:
What do you think about this restriction? Does anyone have experience with the new tail call optimization of GCC, especially when making an indirect call via a function pointer? LCA2007: Concurrency and ErlangExtremely attractive overview and slides about a one-hour Erlang talk by André Pang at linux.conf.au 2007.
Another reason I wish I'd talked myself into attending this conference! |
Browse archivesActive forum topics |
Recent comments
22 weeks 12 hours ago
22 weeks 16 hours ago
22 weeks 16 hours ago
44 weeks 1 day ago
48 weeks 3 days ago
50 weeks 1 day ago
50 weeks 1 day ago
1 year 4 days ago
1 year 5 weeks ago
1 year 5 weeks ago