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: 103376,998480123ade4649 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Received: by 10.68.0.170 with SMTP id 10mr12904998pbf.2.1322263854069; Fri, 25 Nov 2011 15:30:54 -0800 (PST) Path: lh20ni18135pbb.0!nntp.google.com!news2.google.com!postnews.google.com!o13g2000vbo.googlegroups.com!not-for-mail From: Jerry Newsgroups: comp.lang.ada Subject: Re: will ada always be supported by gcc? Date: Fri, 25 Nov 2011 15:30:53 -0800 (PST) Organization: http://groups.google.com Message-ID: <344dc574-25d0-4fe3-aee3-3f1ee7e48658@o13g2000vbo.googlegroups.com> References: <4ecc00f2$0$4148$6e1ede2f@read.cnntp.org> NNTP-Posting-Host: 97.117.188.21 Mime-Version: 1.0 X-Trace: posting.google.com 1322263853 13239 127.0.0.1 (25 Nov 2011 23:30:53 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 25 Nov 2011 23:30:53 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: o13g2000vbo.googlegroups.com; posting-host=97.117.188.21; posting-account=x5rpZwoAAABMN2XPwcebPWPkebpwQNJG User-Agent: G2/1.0 X-Google-Web-Client: true X-Google-Header-Order: HLUARECNK X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_8; en-us) AppleWebKit/533.19.4 (KHTML, like Gecko) Version/5.0.3 Safari/533.19.4,gzip(gfe) Xref: news2.google.com comp.lang.ada:14660 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Date: 2011-11-25T15:30:53-08:00 List-Id: On Nov 24, 11:08=A0am, Lucretia wrote: > On Nov 23, 12:19=A0pm, Chad wrote: > > The problem with Pascal is that Standard Pascal is limited (i.e. > structured BASIC for learning), everything else is a hack on top, with > each being incompatible with each other. > > If I was you, I would look into interfacing Ada with your Pascal code. > Normally, Pascal passes params left to right (unlike C, which is r-to- > l > due to ...), Ada I would think would pass in a similar manner, might > not > be the same though. If not, might be worth looking into the compiler > to > extend it with Interfaces.Pascal (or GPC) and the param passing > mechanism, > so you can import Pascal procedures/functions as Ada subprograms. > > e.g. > > procedure Some_GPC_Thingy; > pragma import(Pascal, Some_GPC_Thingy); > > Would be better than porting Pascal -> Ada. > > Luke. I have interfaced Ada to Pascal (I can't remember if it was GPC or FPC) assuming C conventions, i.e., procedure Some_GPC_Thingy; pragma import(C, Some_GPC_Thingy); Jerry