??? 06/17/07 23:07 Read: times |
#140915 - need recursive calls? use a chip that can take it Responding to: ???'s previous message |
Ryan: I hope you don't mind me answering some of these.
Russ Cooper said:
With OCG, are recursive calls still a problem on machines that don't have a hardware stack? It's just not worth implementing a solution to support recursion on chip's that don't have a stack you can manipulate. Recursion is not used that often anyway in (small) embedded apps, and it your design really calls for it, then choose a chip that can handle it. (ie, not a PIC) In the case of our (soon to be released) OCG based 8051 compiler, we've implemented a hybrid solution. Both conventional and compiled (statically allocated) stack are allowed and the code generator chooses the appropriate/most efficient method automatically. -Matt HI-TECH Software. |