comp.lang.ada
 help / color / mirror / Atom feed
From: Craig Carey <research@ada95.ijs.com>
Subject: Re: c2ada for Win
Date: Thu, 09 May 2002 18:31:51 GMT
Date: 2002-05-09T18:31:51+00:00	[thread overview]
Message-ID: <11fldug3evgbbs208m816tssipcd3o98oh@4ax.com> (raw)
In-Reply-To: 3CD6AFEA.96F51BB4@avercom.net

On Mon, 06 May 2002 12:31:38 -0400, Tucker Taft <stt@avercom.net>
wrote:

>Preben Randhol wrote:
>> 
>> On Fri, 03 May 2002 03:05:48 -0500, Anatoly Chernyshev wrote:
>> > Hello, everybody,
>> >
>> > I need to convert C header into ads-file to get access to a dll. I tried
>> > to search c2ada
>> > for Windows in the Web, but the only link led me to the Intermetrics
>> > site which seems to be nonexistent any longer. If someone could point me
>> > to the right URL or send me either compilable source or the ready
>> > binary, I would greatly appreciate that.
>> 


There is a C to Ada bindings program that is in *.EXE format, at this
location:

http://members.tripod.com/vagul/
http://members.tripod.com/vagul/cbind4win32.zip

   (Site of D. Anisimkov. Cbfe.exe is 334,941 bytes in size.)

A command like this can be used, when creating Ada 95 bindings from C
headers:

   CBFE -cs -erc -rrc -ap -C -gnat -95 input.h

C headers can be obtained from http://www.mingw.org/ but cbfe gets
further when references to C headers are commented out.

Also the precompiled cbfe program will print the offsets, in bytes, of
GCC fields of structs (Ada 95 "records"). 

If the translation is from Borland Pascal to Ada 95, then the body of
the PASCAL source be translated to Ada in addition to headers (using
NewP2Ada, P2Ada).

If C++ needs to be converted into Ada, then what can translate C++
into Pascal ?.


NewP2Ada (Pascal2Ada): http://www.mysunrise.ch/users/gdm/gsoft.htm




----

Ps. How can C++ be translated and converted automatically into Ada ?.



>> http://www.averstar.com/~stt/bindings/c2ada/c2ada.html
...
>> http://www.averstar.com/~stt/bindings/c2ada/c2ada.tar.gz



Craig Carey

Ada 95 Mailing lists: http://www.ijs.co.nz/ada_95.htm





      reply	other threads:[~2002-05-09 18:31 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-03  8:05 c2ada for Win Anatoly Chernyshev
2002-05-03  8:30 ` Preben Randhol
2002-05-06 16:31   ` Tucker Taft
2002-05-09 18:31     ` Craig Carey [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