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,2cb1f0b6d642e1dc X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news2.google.com!postnews.google.com!w9g2000prg.googlegroups.com!not-for-mail From: ytomino Newsgroups: comp.lang.ada Subject: Re: Pascal Calling Convention Date: Wed, 23 Mar 2011 17:38:41 -0700 (PDT) Organization: http://groups.google.com Message-ID: <6e021ff9-17ec-430b-a4ec-8f4ae5b40ac7@w9g2000prg.googlegroups.com> References: <9b04626e-567d-408c-aab3-39b964b3ffd6@l2g2000prg.googlegroups.com> NNTP-Posting-Host: 118.6.220.166 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1300927121 25382 127.0.0.1 (24 Mar 2011 00:38:41 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Thu, 24 Mar 2011 00:38:41 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w9g2000prg.googlegroups.com; posting-host=118.6.220.166; posting-account=Mi71UQoAAACnFhXo1NVxPlurinchtkIj User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_5_8; en-US) AppleWebKit/534.16 (KHTML, like Gecko) Chrome/10.0.648.151 Safari/534.16,gzip(gfe) Xref: g2news2.google.com comp.lang.ada:19381 Date: 2011-03-23T17:38:41-07:00 List-Id: Hello, On Mar 24, 6:37=A0am, Shark8 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" (=3D 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_Functions#Cal= ling_Conventions > -- 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)