This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: automatic arrays in g77
- To: Martin Kahlert <martin dot kahlert at mchp dot siemens dot de>
- Subject: Re: automatic arrays in g77
- From: Toon Moene <toon at moene dot indiv dot nluug dot nl>
- Date: Tue, 08 Feb 2000 22:41:29 +0100
- CC: gcc at gcc dot gnu dot org
- Organization: Moene Computational Physics, Maartensdijk, The Netherlands
- References: <200002081404.PAA04778@keksy.mchp.siemens.de>
Martin Kahlert wrote:
> how can i tell g77, that a big array (double precision with >= 4097 elements
> in my particular case) should be put on the stack instead of static storage?
> 4096 seems to be the limit for g77.
Unfortunately, you can't. It is a compile time (i.e. f/com.c compile
time) constant (32 Kbytes).
I have been thinking about trying to make it a compiler switch (i.e. so
that you could say something like g77 -fstackable-size=NNNN) but I never
came around tracking down *if* f/com.c's code would allow this to be a
variable instead of a constant.
Hope this helps,
--
Toon Moene (toon@moene.indiv.nluug.nl)
Saturnushof 14, 3738 XG Maartensdijk, The Netherlands
Phone: +31 346 214290; Fax: +31 346 214286
GNU Fortran: http://gcc.gnu.org/onlinedocs/g77_news.html