Skip to Content.
Sympa Menu

xom-interest - Re: [XOM-interest] Three cosmetic patches

xom-interest AT lists.ibiblio.org

Subject: XOM API for Processing XML with Java

List archive

Chronological Thread  
  • From: "Francois Beausoleil" <fbos AT users.sourceforge.net>
  • To: "Wolfgang Hoschek" <whoschek AT lbl.gov>, xom-interest AT lists.ibiblio.org
  • Cc:
  • Subject: Re: [XOM-interest] Three cosmetic patches
  • Date: Wed, 11 Feb 2004 20:05:58 -0500


On Wed, 11 Feb 2004 10:24:31 -0800, "Wolfgang Hoschek" <whoschek AT lbl.gov>
said:
> > If it is "tail recursion", then
> > it usually does not matter. Optimizers can turn tail recursion (where
> > the recursive call is the last instruction in the routine) into
> > standard iteration.
>
> "Usually" often does not apply to java compilers. Most java compilers
> won't actually do tail recursion transformations. You can check this
> yourself by running the snippet below. Tail recursion transformation
> would rewrite the recursion into "while (true) {}". If the program
> crashes with a StackOverflow the compiler does not do the optimization;
> if it continues infinitely without any problem the compiler does the
> optimization.

Thanks for the info !

[snip]

Bye !
François
Developer of Java Gui Builder
http://jgb.sourceforge.net/




Archive powered by MHonArc 2.6.24.

Top of Page