Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!uunet!seismo!sundc!pitstop!sun!decwrl!labrea!jade!ucbvax!husc6!ut-sally!utah-cs!moore From: moore@utah-cs.UUCP (Tim Moore) Newsgroups: comp.lang.c Subject: tail recursion in C Message-ID: <5091@utah-cs.UUCP> Date: Thu, 29-Oct-87 20:10:49 EST Article-I.D.: utah-cs.5091 Posted: Thu Oct 29 20:10:49 1987 Date-Received: Wed, 4-Nov-87 03:46:21 EST Organization: University of Utah CS Dept Lines: 19 Posting-Front-End: GNU Emacs 18.44.12 of Thu Sep 24 1987 on cs.utah.edu (berkeley-unix) Are there any C compilers which perform tail recursive optimization? As an example, are there any C compilers under which the following (stupid) program main() { change(1); } change(a) int a; { int b; b = -a; change(b); } will run forever and not run out of stack?