This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |
| Other format: | [Raw text] | |
On Tuesday, October 14, 2003, at 08:00 PM, Robert Dewar wrote:
In this case, two arrays do not need memory at the same time. Cannot SUBROUTINE B use the same memory area as A in Fortran compiler, even if I do not declare explicitly COMMON I?
Actually, most modern Fortran compilers have a switch to control this. g77 documents
-fautomatic to do what you want. I haven't tried it; the doc also claims it is the default, so
it may not be working right in your environment, or it may have some limit on how much
stack space it will allocate.
-- Toon Moene - mailto:toon@moene.indiv.nluug.nl - phoneto: +31 346 214290 Saturnushof 14, 3738 XG Maartensdijk, The Netherlands Maintainer, GNU Fortran 77: http://gcc.gnu.org/onlinedocs/g77_news.html GNU Fortran 95: http://gcc.gnu.org/fortran/ (under construction)
| Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
|---|---|---|
| Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |