* Ada and C
@ 2016-11-21 11:39 Mr. Man-wai Chang
2016-11-21 11:43 ` Luke A. Guest
2016-11-22 5:32 ` Per Sandberg
0 siblings, 2 replies; 11+ messages in thread
From: Mr. Man-wai Chang @ 2016-11-21 11:39 UTC (permalink / raw)
Does Adata... sorry... Ada interact with C?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 11:39 Ada and C Mr. Man-wai Chang
@ 2016-11-21 11:43 ` Luke A. Guest
2016-11-21 11:44 ` Mr. Man-wai Chang
2016-11-22 5:32 ` Per Sandberg
1 sibling, 1 reply; 11+ messages in thread
From: Luke A. Guest @ 2016-11-21 11:43 UTC (permalink / raw)
Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
>
> Does Adata... sorry... Ada interact with C?
>
If you want it to
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 11:43 ` Luke A. Guest
@ 2016-11-21 11:44 ` Mr. Man-wai Chang
2016-11-21 12:51 ` Luke A. Guest
2016-11-21 15:06 ` G.B.
0 siblings, 2 replies; 11+ messages in thread
From: Mr. Man-wai Chang @ 2016-11-21 11:44 UTC (permalink / raw)
On 21/11/2016 7:43 PM, Luke A. Guest wrote:
> Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
>>
>> Does Adata... sorry... Ada interact with C?
>>
>
> If you want it to
Talking about physical reality *examples*!
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 11:44 ` Mr. Man-wai Chang
@ 2016-11-21 12:51 ` Luke A. Guest
2016-11-21 15:06 ` G.B.
1 sibling, 0 replies; 11+ messages in thread
From: Luke A. Guest @ 2016-11-21 12:51 UTC (permalink / raw)
Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
> On 21/11/2016 7:43 PM, Luke A. Guest wrote:
>> Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
>>>
>>> Does Adata... sorry... Ada interact with C?
>>>
>>
>> If you want it to
>
> Talking about physical reality *examples*!
>
There are plenty of projects that do. Just search. One of mine is sdlada
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 11:44 ` Mr. Man-wai Chang
2016-11-21 12:51 ` Luke A. Guest
@ 2016-11-21 15:06 ` G.B.
2016-11-21 20:52 ` jan van katwijk
1 sibling, 1 reply; 11+ messages in thread
From: G.B. @ 2016-11-21 15:06 UTC (permalink / raw)
On 21.11.16 12:44, Mr. Man-wai Chang wrote:
> On 21/11/2016 7:43 PM, Luke A. Guest wrote:
>> Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
>>>
>>> Does Adata... sorry... Ada interact with C?
>>>
>>
>> If you want it to
>
> Talking about physical reality *examples*!
One example is an Ada program that calls POSIX routines
as implemented for GNU/Linux, another is one that calls
Windows™ GUI's functions (Win32).
That, as well as the fact that the Ada standard specifies how
Ada and C should interact (in LRM B.3, Interfaces.C), should
answer the question not just by particular example but for
every compiler on any supported system.
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 15:06 ` G.B.
@ 2016-11-21 20:52 ` jan van katwijk
0 siblings, 0 replies; 11+ messages in thread
From: jan van katwijk @ 2016-11-21 20:52 UTC (permalink / raw)
Op maandag 21 november 2016 16:06:43 UTC+1 schreef G.B.:
> On 21.11.16 12:44, Mr. Man-wai Chang wrote:
> > On 21/11/2016 7:43 PM, Luke A. Guest wrote:
> >> Mr. Man-wai Chang <toylet.toylet@gmail.com> wrote:
> >>>
> >>> Does Adata... sorry... Ada interact with C?
> >>>
> >>
> >> If you want it to
> >
> > Talking about physical reality *examples*!
>
> One example is an Ada program that calls POSIX routines
> as implemented for GNU/Linux, another is one that calls
> Windows™ GUI's functions (Win32).
> That, as well as the fact that the Ada standard specifies how
> Ada and C should interact (in LRM B.3, Interfaces.C), should
> answer the question not just by particular example but for
> every compiler on any supported system.
You could take a look at https://github.com/JvanKatwijk/ada-dab
which contains source for a DAB decoder and is using a number of C libraries
a.o it interfaces to C libraries for sdr input devices and soundcard output using a number of callbacks as well.
j
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-21 11:39 Ada and C Mr. Man-wai Chang
2016-11-21 11:43 ` Luke A. Guest
@ 2016-11-22 5:32 ` Per Sandberg
2016-11-22 8:10 ` Mr. Man-wai Chang
1 sibling, 1 reply; 11+ messages in thread
From: Per Sandberg @ 2016-11-22 5:32 UTC (permalink / raw)
Well
Interaction between Source languages is one thing but you need to take
the tool-chain into consideration as well.
Take a look on C++, libraries compiled with Microsoft C++ and GCC C++
are not compatible.
But GCC Ada, C and C++ are compatible, the compiler gcc could even
generate the ada-specs from C and C++ headers ,not all but the ones that
are "compatible" and the most recent gnat could generate C headers from
ada-specs.
/P
Den 2016-11-21 kl. 12:39, skrev Mr. Man-wai Chang:
>
> Does Adata... sorry... Ada interact with C?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-22 5:32 ` Per Sandberg
@ 2016-11-22 8:10 ` Mr. Man-wai Chang
2016-11-22 18:07 ` erlo
0 siblings, 1 reply; 11+ messages in thread
From: Mr. Man-wai Chang @ 2016-11-22 8:10 UTC (permalink / raw)
On 22/11/2016 1:32 PM, Per Sandberg wrote:
> Well
>
> Interaction between Source languages is one thing but you need to take
> the tool-chain into consideration as well.
And the food chain as well. What ate dBase? Foxpro? Clipper? :)
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Ada and C
2016-11-22 8:10 ` Mr. Man-wai Chang
@ 2016-11-22 18:07 ` erlo
2016-11-23 4:16 ` Foxbase, Foxpro " Mr. Man-wai Chang
0 siblings, 1 reply; 11+ messages in thread
From: erlo @ 2016-11-22 18:07 UTC (permalink / raw)
On 22-11-2016 09:10, Mr. Man-wai Chang wrote:
> On 22/11/2016 1:32 PM, Per Sandberg wrote:
>> Well
>>
>> Interaction between Source languages is one thing but you need to take
>> the tool-chain into consideration as well.
>
> And the food chain as well. What ate dBase? Foxpro? Clipper? :)
>
Surely not Ada!
/Erlo
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Foxbase, Foxpro and C
2016-11-22 18:07 ` erlo
@ 2016-11-23 4:16 ` Mr. Man-wai Chang
2016-11-23 15:49 ` erlo
0 siblings, 1 reply; 11+ messages in thread
From: Mr. Man-wai Chang @ 2016-11-23 4:16 UTC (permalink / raw)
On 23/11/2016 2:07 AM, erlo wrote:
> On 22-11-2016 09:10, Mr. Man-wai Chang wrote:
>> On 22/11/2016 1:32 PM, Per Sandberg wrote:
>>> Well
>>>
>>> Interaction between Source languages is one thing but you need to take
>>> the tool-chain into consideration as well.
>>
>> And the food chain as well. What ate dBase? Foxpro? Clipper? :)
>>
> Surely not Ada!
I barely remember that both Foxbase and Foxpro were written in C?
^ permalink raw reply [flat|nested] 11+ messages in thread
* Re: Foxbase, Foxpro and C
2016-11-23 4:16 ` Foxbase, Foxpro " Mr. Man-wai Chang
@ 2016-11-23 15:49 ` erlo
0 siblings, 0 replies; 11+ messages in thread
From: erlo @ 2016-11-23 15:49 UTC (permalink / raw)
On 23-11-2016 05:16, Mr. Man-wai Chang wrote:
> On 23/11/2016 2:07 AM, erlo wrote:
>> On 22-11-2016 09:10, Mr. Man-wai Chang wrote:
>>> On 22/11/2016 1:32 PM, Per Sandberg wrote:
>>>> Well
>>>>
>>>> Interaction between Source languages is one thing but you need to take
>>>> the tool-chain into consideration as well.
>>>
>>> And the food chain as well. What ate dBase? Foxpro? Clipper? :)
>>>
>> Surely not Ada!
>
> I barely remember that both Foxbase and Foxpro were written in C?
>
And?
^ permalink raw reply [flat|nested] 11+ messages in thread
end of thread, other threads:[~2016-11-23 15:49 UTC | newest]
Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21 11:39 Ada and C Mr. Man-wai Chang
2016-11-21 11:43 ` Luke A. Guest
2016-11-21 11:44 ` Mr. Man-wai Chang
2016-11-21 12:51 ` Luke A. Guest
2016-11-21 15:06 ` G.B.
2016-11-21 20:52 ` jan van katwijk
2016-11-22 5:32 ` Per Sandberg
2016-11-22 8:10 ` Mr. Man-wai Chang
2016-11-22 18:07 ` erlo
2016-11-23 4:16 ` Foxbase, Foxpro " Mr. Man-wai Chang
2016-11-23 15:49 ` erlo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox