comp.lang.ada
 help / color / mirror / Atom feed
From: Jerry <lanceboyle@qwest.net>
Subject: Re: will ada always be supported by gcc?
Date: Fri, 25 Nov 2011 15:30:53 -0800 (PST)
Date: 2011-11-25T15:30:53-08:00	[thread overview]
Message-ID: <344dc574-25d0-4fe3-aee3-3f1ee7e48658@o13g2000vbo.googlegroups.com> (raw)
In-Reply-To: b442feb1-70b0-4f4e-aa4e-259986be4abe@h21g2000yqg.googlegroups.com

On Nov 24, 11:08 am, Lucretia <laguest9...@googlemail.com> wrote:
> On Nov 23, 12:19 pm, Chad <leo.bre...@internode.on.net> 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



      reply	other threads:[~2011-11-25 23:30 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-20  2:15 will ada always be supported by gcc? leo.brewin
2011-11-20  4:08 ` anon
2011-11-20 19:37 ` John B. Matthews
2011-11-21 19:31 ` Adam Beneschan
2011-11-21 20:39   ` Simon Clubley
2011-11-21 21:39 ` Ludovic Brenta
2011-11-21 22:17   ` Simon Wright
2011-11-23  2:28   ` Yannick Duchêne (Hibou57)
2011-11-23 15:05     ` Robert A Duff
2011-11-21 22:07 ` Robert A Duff
2011-11-21 23:56   ` Randy Brukardt
2011-11-22  0:36     ` Adam Beneschan
2011-11-22 10:04       ` Patrick Jakubowski
2011-11-21 23:38 ` Jerry
2011-11-23  2:38   ` Yannick Duchêne (Hibou57)
2011-11-22 20:07 ` Sebastian Doht
2011-11-23  3:00   ` Yannick Duchêne (Hibou57)
2011-11-23  3:01     ` Yannick Duchêne (Hibou57)
2011-11-23 12:19       ` Chad
2011-11-24 18:08         ` Lucretia
2011-11-25 23:30           ` Jerry [this message]
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox