It depends on the specifics of what you are doing.  If you need to be miserly 
about ROM use then recursion might help however if this needs to be a time 
critical piece of code then recursion might be trouble.  You also need to 
balance in the fact that in terms of future maintenance you would like things 
to 
be readily understandable as much as possible.  What are you doing and why are 
you considering recursion?


[email protected] wrote:
> I think I've seen in the past (maybe not here, but probably) much
> debate regarding the good, the bad, and the ugly of programming using
> recursion. I don't know that I ever saw a final verdict. I am curious
> if the argument changes when talking about the embedded world. I have
> a project and the most straightforward and efficient (as I see it at
> least) solution is to use recursion. A friend said he'd heard
> 'recursion equals bad' in the embedded environment. I know there are
> many savvy minds here so if there is a good argument why recursion
> should or needs to be avoided then please could someone offer a little
> insight with valid reasons instead of me just going with what someone
> 'heard'? Any help is appreciated. Thanks.
> 

Reply via email to