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=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: a07f3367d7,222ed89632aabb93 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.224.182.77 with SMTP id cb13mr1415931qab.5.1343315575036; Thu, 26 Jul 2012 08:12:55 -0700 (PDT) Received: by 10.66.79.169 with SMTP id k9mr1638713pax.18.1343315574952; Thu, 26 Jul 2012 08:12:54 -0700 (PDT) Path: a15ni113198934qag.0!nntp.google.com!q21no4267968qas.0!news-out.google.com!p10ni65010571pbh.1!nntp.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx02.iad01.newshosting.com!newshosting.com!newspump.sol.net!xlned.com!feeder5.xlned.com!ramfeed-2.ams.xsnews.nl!feed.xsnews.nl!border-1.ams.xsnews.nl!newsfeed.straub-nv.de!news.swapon.de!eternal-september.org!feeder.eternal-september.org!mx04.eternal-september.org!.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Free AMD Core Math Library (BLAS/LAPACK) + Ada Date: Tue, 24 Jul 2012 16:11:48 +0100 Organization: A noiseless patient Spider Message-ID: References: <41b74e89-f112-4791-883d-236080652dbf@googlegroups.com> <87txx8yl8t.fsf@ludovic-brenta.org> <87pq7wyek7.fsf@ludovic-brenta.org> <16a6786f-6de5-49c4-90b7-a55cb238d52a@googlegroups.com> <509991f4-bcb4-45a0-84f3-b8393db64da4@googlegroups.com> <374bd898-5683-4350-8812-e3cae186ab2b@googlegroups.com> <87k3y3jxgj.fsf@ludovic-brenta.org> <23edac82-3e0e-47f5-85b7-36473e4a44ed@googlegroups.com> <1b104165-d8e4-4eb2-89ad-f6ac48bf2578@googlegroups.com> Mime-Version: 1.0 Injection-Info: mx04.eternal-september.org; posting-host="25fc2ade9104c197bc660e5cfac1b2db"; logging-data="22300"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/gkgN98ayvRaBTbOAtFW7P5zUUn65gsiw=" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.1 (darwin) Cancel-Lock: sha1:0Yn87RfKh3/pvvC5QikG5fZ6EPQ= sha1:fzOAJ+sxt3Xl86mNAYKGgb/LCpQ= Content-Type: text/plain Date: 2012-07-24T16:11:48+01:00 List-Id: Ada novice writes: > with no error messages. And testing ./cxbi gives: > > $ ./cxbi > Integer number passing: > mode: in out in/out > Ada send: > 1 1 1 > Fortran get: > 1 1 1 > Fortran send: > 2 2 2 > Ada recieve: > 1 2 2 > Ada send: > -1 -1 -1 > Fortran get: > -1 -1 -1 > Fortran send: > 0 0 0 > Ada recieve: > -1 0 0 > > There are some slight discrepancies in the first and last lines > between what is sent and what is received. Is this normal? ISTR there's a comment explaining this at the end of cxbi.adb - basically, Ada thinks the differing parameters are 'in', so isn't interested in what the Fortran has set them to (you can get the equivalent of 'in' parameters in Fortran using 'intents', I think).