I should have asked this question instead: is ATS guaranteed to optimize self tail calls only or all tail calls?
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/ba812efd-49ad-40a7-a7ac-51cdfebea386%40googlegroups.com.
Only self tail-calls by default.
To turn mutually recursive tail-calls into jumps, you need to use the keyword 'fnx' (instead of 'fun').
To turn all tail-calls into jumps, one usually needs to do CPS-style compilation.
Only self tail-calls by default.
To turn mutually recursive tail-calls into jumps, you need to use the keyword 'fnx' (instead of 'fun').
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/5c652a42-8017-4f86-9a6e-dafa71205b87%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "ats-lang-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to ats-lang-user...@googlegroups.com.
To post to this group, send email to ats-lan...@googlegroups.com.
Visit this group at http://groups.google.com/group/ats-lang-users.
To view this discussion on the web visit https://groups.google.com/d/msgid/ats-lang-users/11d53eca-c214-4de0-9c54-549610084edb%40googlegroups.com.
The original design is this:
Using 'fnx' means to require all the recursive calls in the body of the defined
function to be tail-calls. It is yet to be fully enforced.