This is the mail archive of the
fortran@gcc.gnu.org
mailing list for the GNU Fortran project.
Re: How to express the fact that arguments don't escape?
- From: "N.M. Maclaren" <nmm1 at cam dot ac dot uk>
- To: fortran at gcc dot gnu dot org
- Date: 15 Aug 2009 12:32:00 +0100
- Subject: Re: How to express the fact that arguments don't escape?
- References: <493FDD92.9030603@net-b.de> <84fc9c000812100724l53799ed4v397d708e8abd2564@mail.gmail.com> <200812101721.39235.franke.daniel@gmail.com> <84fc9c000812100831h379be350ybc9fcfa46f0958b2@mail.gmail.com> <4A85FA4A.3070509@physik.uni-muenchen.de> <84fc9c000908150246w4b88d006ude35e1ccf794ed5a@mail.gmail.com>
On Aug 15 2009, Richard Guenther wrote:
It's of course one area where the Fortran choice of passing everything by
reference pessimizes it quite a bit compared to other frontends ...
Can the back-end distinguish traditional call by reference (as in Algol 60
and 68) from call by pointer value (and in C and C++)? The former does
not have the same pessimisation problem, and is actually what Fortran needs
for 'ordinary' objects.
The difference could be useful for the C++ STL and possibly Ada, but I have
forgotten the little of the latter that I once knew and so am not sure.
Regards,
Nick Maclaren,
University of Cambridge Computing Service,
New Museums Site, Pembroke Street, Cambridge CB2 3QH, England.
Email: nmm1@cam.ac.uk
Tel.: +44 1223 334761 Fax: +44 1223 334679