public inbox for gcc-help@gcc.gnu.org
 help / color / mirror / Atom feed
From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To: gcc-help@gcc.gnu.org
Subject: Arraysizes in g77 (gcc-2.95.2)
Date: Sun, 23 Jan 2000 23:16:00 -0000	[thread overview]
Message-ID: <20000124081635.B82301@internal> (raw)

Hello all,

I am using GCC 2.95.2. I have a program for antenna simulation which
is mostly written in fortran. I am using an array of complex variables
(the size of one element is 16 bytes). I can allocate only 33554431 of
these elements. When trying to use more than that, the compiler stops
with an error:

cd .; /usr/local/bin/g77 -O2 -finit-local-zero -fomit-frame-pointer -s -c qustn.f
celem.inc: In subroutine `qust':
celem.inc:3: 
         complex*16  celem(ndim)
                     ^
Array `celem' at (^) is too large to handle


33554431 * 16 is exactly 512 * 1024 * 1024 - 16 bytes. So I
assume it is not possible to declare an array that is bigger
than 512MB - sizeof(one_element).

Now my question: Do you know if I can simply bump some number
in some file of GCC to increase this limit a bit?

Thanks a lot in advance!

	-Andre

WARNING: multiple messages have this Message-ID
From: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
To: gcc-help@gcc.gnu.org
Subject: Arraysizes in g77 (gcc-2.95.2)
Date: Sat, 01 Apr 2000 00:00:00 -0000	[thread overview]
Message-ID: <20000124081635.B82301@internal> (raw)
Message-ID: <20000401000000.hBC12G-jqX2RTR-O387ZnCOrt2AY7Gb4-kJii1GObX4@z> (raw)

Hello all,

I am using GCC 2.95.2. I have a program for antenna simulation which
is mostly written in fortran. I am using an array of complex variables
(the size of one element is 16 bytes). I can allocate only 33554431 of
these elements. When trying to use more than that, the compiler stops
with an error:

cd .; /usr/local/bin/g77 -O2 -finit-local-zero -fomit-frame-pointer -s -c qustn.f
celem.inc: In subroutine `qust':
celem.inc:3: 
         complex*16  celem(ndim)
                     ^
Array `celem' at (^) is too large to handle


33554431 * 16 is exactly 512 * 1024 * 1024 - 16 bytes. So I
assume it is not possible to declare an array that is bigger
than 512MB - sizeof(one_element).

Now my question: Do you know if I can simply bump some number
in some file of GCC to increase this limit a bit?

Thanks a lot in advance!

	-Andre

             reply	other threads:[~2000-01-23 23:16 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-01-23 23:16 Andre Albsmeier [this message]
2000-04-01  0:00 ` Andre Albsmeier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20000124081635.B82301@internal \
    --to=andre.albsmeier@mchp.siemens.de \
    --cc=gcc-help@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).