Tail Recursion in Java

5 views
Skip to first unread message

Haidong (Haydon) Xue

unread,
Jun 26, 2012, 12:38:33 PM6/26/12
to gsu-csc4520...@googlegroups.com
Hi all,

I Googled a little bit, and see that
http://stackoverflow.com/questions/105834/does-the-jvm-prevent-tail-call-optimizations 

Looks like tail recursion optimization is currently not supported in Java. 

Nonetheless, potentially compilers can improve performance by taking tail recursion into consideration, and many compilers do so but not current Java interpreter.  

--
Haidong(Haydon) Xue
Ph.D Candidate
Research Assistant, Teaching Instructor
Department of Computer Science
Georgia State University
Reply all
Reply to author
Forward
0 new messages