[Ilugc] C pgm - Recursive -segmentation fault

  • From: karthick.sundararajan@xxxxxxxxx (karthick.sundararajan@xxxxxxxxx)
  • Date: Wed Sep 15 12:31:55 2004



(c)On Wed, 15 Sep 2004 00:39:44 +1000, Raja Subramanian
(c)> Compiler optimisation is at work here.
(c)>
(c)> Lookup "tail recursion elimination" in GCC docs or your favourite
(c)> compilers book.
(c)>
(c)> IIRC, GCC can also to "tail call elimination".  Both of which can
(c)> eliminate the recursive function call and effectively turn it into
a
(c)> loop.
(c)
(c)AFAIK, when gcc is called with *no* command line options, *no*
(c)optimization will be done.
(c)

Sridhar, It might be some alias! Just a guess.
Rgds,
Karthick S.



(c)--
(c)Sridhar R - http://cs.annauniv.edu/~rsridhar
(c)Blog: http://www.livejournal.com/~sridharinfinity
(c)_______________________________________________
(c)To unsubscribe, email ilugc-request@xxxxxxxxxxxxx with
(c)"unsubscribe <password> address"
(c)in the subject or body of the message. 
(c)http://www.ae.iitm.ac.in/mailman/listinfo/ilugc
(c)


Confidentiality Notice

The information contained in this electronic message and any attachments to 
this message are intended
for the exclusive use of the addressee(s) and may contain confidential or 
privileged information. If
you are not the intended recipient, please notify the sender at Wipro or 
Mailadmin@xxxxxxxxx immediately
and destroy all copies of this message and any attachments.

Other related posts: