This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: Two other optimization questions.
- To: Geert Bosch <bosch at gnat dot com>, egcs at egcs dot cygnus dot com
- Subject: Re: Two other optimization questions.
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Fri, 09 Apr 1999 15:14:39 +0200
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <199904090816.KAA15394@paris.act-europe.fr>
Geert Bosch wrote:
> Open code
>
> if (x < 0)
> throw domain_error;
> result = sqrt(x);
>
> What should actually happen, I think, is that we should allow for
> builtins to be added by the language front end, and by the target
> machine.
>
> This is what currently is done in GNAT. Actually I do not really
> see the need for builtin's in the case of GNAT. Full function
> inlining across different compilation units works fine,
> and there is no need for special circuitry for language defined
> functions. (In general the idea of front-end provided overrides
> for builtin's seems interesting though!)
Hmmm, how do you do function inlining across different compilation units
? The only Fortran implementation I'm familiar with that does that is
SGI's - they postpone interprocedural analysis and optimization until
link time.
Does GNAT have such a linker ? If so, is it under the GPL (i.e. useable
to other Front Ends ?
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
g77 Support: fortran@gnu.org; egcs: egcs-bugs@cygnus.com