News for hackers. Stuff that matters.
Re:The Dark Side of C++ [pdf] by geophile on Monday August 02, 2010 @01:06PM (#1568198)
Stack overflow for large n.
Re:The Dark Side of C++ [pdf] by kinghajj on Monday August 02, 2010 @01:28PM (#1568284)
Ah, I didn't consider that. A decent optimizing compiler should be able to remove all the tail calls (G++ did this with your code and -O2), so this shouldn't be a problem in practice, except maybe for debugging.