From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,49eb370bfd3baa90 X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!postnews.google.com!l41g2000cwc.googlegroups.com!not-for-mail From: "braver" Newsgroups: comp.lang.ada Subject: Re: Memory limits in Ada where Fortran has none Date: 6 Mar 2005 16:36:58 -0800 Organization: http://groups.google.com Message-ID: <1110155818.008076.218530@l41g2000cwc.googlegroups.com> References: <1110070479.250902.220540@l41g2000cwc.googlegroups.com> <1110089930.914615.182480@l41g2000cwc.googlegroups.com> <1260026.XKFy62IHbW@linux1.krischik.com> <1110125661.857477.251640@o13g2000cwo.googlegroups.com> NNTP-Posting-Host: 68.38.224.153 Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" X-Trace: posting.google.com 1110155821 392 127.0.0.1 (7 Mar 2005 00:37:01 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 7 Mar 2005 00:37:01 +0000 (UTC) In-Reply-To: User-Agent: G2/0.2 Complaints-To: groups-abuse@google.com Injection-Info: l41g2000cwc.googlegroups.com; posting-host=68.38.224.153; posting-account=747fcg0AAAAk37ynL4bMm6Gl7Dz_tnyx Xref: g2news1.google.com comp.lang.ada:8788 Date: 2005-03-06T16:36:58-08:00 List-Id: Thanks, Craig, it's nice! I thought along these lines -- declare an array in Ada, import it from Fortran, and simply turn off the upper limit check via pragma/command line switch. Like: ND: Intarray(1..NMAX); -- don't care what NMAX is! Pragma Import(Fortran, ND, "nd_"); Now compile it with -gnatp and use whatever index... And if it's in a package, may even avoid using the heap... Didn't check this one, but seems OK to me... Cheers, Alexy