[Mono-devel-list] tailcall support in mcs

Michal Moskal malekith at pld-linux.org
Mon Sep 15 07:18:59 EDT 2003

On Mon, Sep 15, 2003 at 07:10:09AM -0400, Jonathan Pryor wrote:
> Well, the developer can see it if they disassemble the application. :-)

Or got SEGV, when there is no tail recursion...

> As for implementation, I've heard that GCC supports tail recursion in C
> code, and many functional languages also tend to support it (often by
> necessity).

GCC support for tail recursion is very poor. It's quite hard to predict
nobody uses pointers to stack data and so on. Well it's hard for C, but
hopefully not for C# ;)

Virtuall all functional languages support tail recursion, it's almost
impossible to program in functional style without it.

> I don't know if mono has implemented support for tail recursion, though.

I see support in ilasm and mini, but no mcs :/

: Michal Moskal :: http://www.kernel.pl/~malekith : GCS {C,UL}++++$ a? !tv
: When in doubt, use brute force. -- Ken Thompson : {E-,w}-- {b++,e}>+++ h

More information about the Mono-devel-list mailing list