Author: Reinhard Scharnagl
Date: 23:56:24 09/14/03
Go up one level in this thread
Hi Uri, >Can programmers write a program that take a code with recursive functions and >translate it to a code without recursive functions that does the same thing? > >Do not answer me that the compiler does it by translating it to assembler >because the translation should be done to a program in the same computer >language so a C source should be translated to another C source. it could be done by locally implementing a kind of a stack. You have therefore to think about maximum call limits. Sometimes a simple loop already will do the aimed task. But what is the reason for such a non recursiv approach? What is wrong with using recursion? Regards, Reinhard.
This page took 0 seconds to execute
Last modified: Thu, 15 Apr 21 08:11:13 -0700
Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.