comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Pascal Calling Convention
Date: Wed, 23 Mar 2011 19:23:39 -0700 (PDT)
Date: 2011-03-23T19:23:39-07:00	[thread overview]
Message-ID: <f45c411b-7eba-49fc-b39d-08a8c8b5ab15@o30g2000pra.googlegroups.com> (raw)
In-Reply-To: 6e021ff9-17ec-430b-a4ec-8f4ae5b40ac7@w9g2000prg.googlegroups.com

On Mar 23, 6:38 pm, ytomino <aghi...@gmail.com> wrote:
> Hello,
>
> On Mar 24, 6:37 am, Shark8 <onewingedsh...@gmail.com> wrote:
>
> > I was looking around for a way to use the Pascal calling convention in
> > GNAT; particularly because I thought it might be nice to do the GUI-
> > stuff in good old Delphi 5 and the application itself in Ada. All
> > easily doable via DLL or, possibly, through the $L compiler directive
> > which specifies a .obj file to link to.
>
> In the first, Delphi's default calling convertion is "register" (=
> fastcall),
> not pascal. And, GNAT does not support fastcall,
> moreever fastcall of gcc is different than fastcall of Windows.
> Probably you have to change calling convertion in Delphi-side.
>
> http://docwiki.embarcadero.com/RADStudio/XE/en/Procedures_and_Functio...

Yep, I know that it's not the default.
But it *does* have Pascal calling convention capability.
And, to be honest, I *don't want* variable parameters passed in the
OS;
so, as someone observed, if the right-to-left parameter passing is the
only way for it to be handled then designing the OS in such a way so
as
to preclude even that possibility sounds like a good idea to me.

{Like Null-exclusion or subranges; I can design out possible errors/
complexities.}

> > -- I found a utility to convert between .o and .obj; so that's not a
> > problem. Though if someone knows a way to
> > -- have GNAT emit .obj files instead of .o I'd like to hear it.
>
> That sounds good!
> How it work about gcc-runtime? (memomry manager, exception handling,
> etc)

I'm not sure.
I haven't "played around" with it enough yet.



  reply	other threads:[~2011-03-24  2:23 UTC|newest]

Thread overview: 57+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-23 21:37 Pascal Calling Convention Shark8
2011-03-23 23:25 ` Yannick Duchêne (Hibou57)
2011-03-24  0:24   ` Randy Brukardt
2011-03-24  0:43     ` Yannick Duchêne (Hibou57)
2011-03-24  2:04       ` Shark8
2011-03-25 15:40         ` Yannick Duchêne (Hibou57)
     [not found]       ` <F8mdnYCca6tRJBfQnZ2dnUVZ_s-dnZ2d@earthlink.com>
2011-03-24 19:20         ` Keith Thompson
2011-03-25 16:04           ` Robert A Duff
2011-03-25 17:02             ` Hyman Rosen
2011-03-25 17:09               ` Robert A Duff
2011-03-25 17:35                 ` Hyman Rosen
2011-03-26 19:51                   ` Robert A Duff
2011-03-25 17:51             ` Keith Thompson
2011-03-26 20:46               ` Robert A Duff
2011-03-27  2:24                 ` Randy Brukardt
2011-03-28 15:41                   ` Adam Beneschan
2011-03-28 19:52                   ` Robert A Duff
2011-03-29  2:32                     ` Randy Brukardt
2011-03-29  6:06                       ` Shark8
2011-03-29 23:45                         ` Randy Brukardt
2011-03-29 19:19                       ` Robert A Duff
2011-03-30  0:02                         ` Randy Brukardt
2011-03-30 12:40                           ` Robert A Duff
2011-03-30 19:40                             ` Randy Brukardt
2011-03-30 20:56                               ` tmoran
2011-03-30 22:34                                 ` Robert A Duff
2011-03-31 21:00                                   ` Randy Brukardt
2011-03-28 20:29                 ` Hyman Rosen
2011-03-28 21:16                   ` Adam Beneschan
2011-03-28 21:26                     ` Hyman Rosen
2011-03-28 22:08                       ` Adam Beneschan
2011-03-28 23:47                         ` Georg Bauhaus
2011-03-29 12:23                           ` stefan-lucks
2011-03-29 13:10                             ` Hyman Rosen
2011-03-30 13:42                             ` Phil Clayton
2011-03-31  7:40                               ` Phil Clayton
2011-03-29  2:48                         ` Hyman Rosen
2011-03-29 18:30                           ` Robert A Duff
2011-03-29 23:25                             ` Adam Beneschan
2011-03-30 12:50                               ` Robert A Duff
2011-03-30 14:47                                 ` Adam Beneschan
2011-03-30 18:10                                   ` Robert A Duff
2011-03-29  3:01                         ` Hyman Rosen
2011-03-29 18:22                           ` Robert A Duff
2011-03-26 21:30           ` Florian Weimer
2011-03-27 16:18             ` Robert A Duff
2011-03-27 16:38               ` Florian Weimer
2011-03-27 16:56                 ` Robert A Duff
2011-03-24  2:15   ` Shark8
2011-03-24  0:38 ` ytomino
2011-03-24  2:23   ` Shark8 [this message]
2011-03-24 21:29 ` Gautier write-only
2011-03-25 12:47 ` Marco
2011-03-25 15:38   ` Yannick Duchêne (Hibou57)
2011-03-26  8:39     ` ObjectAda [was: Pascal Calling Convention] Gautier write-only
2011-03-26 14:05       ` Marco
2011-03-26 21:58         ` Gautier write-only
replies disabled

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