comp.lang.ada
 help / color / mirror / Atom feed
* c2ada for Win
@ 2002-05-03  8:05 Anatoly Chernyshev
  2002-05-03  8:30 ` Preben Randhol
  0 siblings, 1 reply; 4+ messages in thread
From: Anatoly Chernyshev @ 2002-05-03  8:05 UTC (permalink / raw)


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.

Thanks in advance,
Anatoly




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c2ada for Win
  2002-05-03  8:05 c2ada for Win Anatoly Chernyshev
@ 2002-05-03  8:30 ` Preben Randhol
  2002-05-06 16:31   ` Tucker Taft
  0 siblings, 1 reply; 4+ messages in thread
From: Preben Randhol @ 2002-05-03  8:30 UTC (permalink / raw)


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.

Go to:

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

The first link to download you see on the page is broken, the link is:

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

Preben



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c2ada for Win
  2002-05-03  8:30 ` Preben Randhol
@ 2002-05-06 16:31   ` Tucker Taft
  2002-05-09 18:31     ` Craig Carey
  0 siblings, 1 reply; 4+ messages in thread
From: Tucker Taft @ 2002-05-06 16:31 UTC (permalink / raw)


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.
> 
> Go to:
> 
> http://www.averstar.com/~stt/bindings/c2ada/c2ada.html
> 
> The first link to download you see on the page is broken,

Oops.  I have fixed this link.

> ... the link is:
> 
> http://www.averstar.com/~stt/bindings/c2ada/c2ada.tar.gz
> 
> Preben

-- 
-Tucker Taft   tucker@yaletaft.com



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: c2ada for Win
  2002-05-06 16:31   ` Tucker Taft
@ 2002-05-09 18:31     ` Craig Carey
  0 siblings, 0 replies; 4+ messages in thread
From: Craig Carey @ 2002-05-09 18:31 UTC (permalink / raw)


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





^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2002-05-09 18:31 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox