By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,428 Members | 1,071 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,428 IT Pros & Developers. It's quick & easy.

g++ and tail recursion

P: n/a
We have been studying tail recursion in my computer class. The prof
told us that some compilers will turn a tail recursion into an
iteration thus allowing many, many function calls to the recursion. I
have proved to myself that the two flavors of VC++ I have will do this
but I cannot get the GNU G++ compiler to do so. It is run in unix on
a sun sparc and is version 3.3.2. It's threading is POSIX. Is there
a switch which will compile a tail recursion on g++ as an iteration?
Ray Wesley Kinserlow Jr.
Lubbock, Texas
rkinserlow at cox dot net
Mar 5 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.