What is tail call optimization? How does it usually work? There's an implementation example on the Wikipedia page to answer this question a little bit:
And, of course, "Debunking the 'Expensive Procedure Call' Myth, or, Procedure Call Implementations Considered Harmful, or, Lambda: The Ultimate GOTO" by Guy Steele. Available here: http://library.readscheme.org/page1.html