2 ms·
> On the other, boy can a compiler that eschews recursion produce small and fast code. Are you really implying that if recursion was turned off in a modern com
by copperx 11y ago
> On the other, boy can a compiler that eschews recursion produce small and fast code.
Are you really implying that if recursion was turned off in a modern compiler it could create better code?
- Gibbon1 11y agoThat would be hard to turn off. My experience is with a old 8051 compiler. Notable feature was it never pushed anything on the stack other than return addresses. Used the call tree to fold parameters and local variables into a small amount of common memory. I think modern compilers deal with this situation by in-lining. But that can cause the code size to swell vs calling a subroutine that accesses globals. Just saying, you add a feature to a language, you will pay something for it.