Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

testsuite to validate POD argument passing between C and C++

1 view
Skip to first unread message

kam...@gmail.com

unread,
Dec 27, 2008, 8:49:23 AM12/27/08
to
{ Note cross-post to clc++m. -mod }

Hello,

I am looking for a testsuite which validates that POD can be passed
between modules written in C and ones writtn in C++ but with C
interfaces. If there is a standard body that has identified valid/
invalid behaviour in this regard and the test suite validates the
same, pl let me know the details.

thanks
-kamal

--
[ See http://www.gotw.ca/resources/clcm.htm for info about ]
[ comp.lang.c++.moderated. First time posters: Do this! ]

alfps

unread,
Dec 29, 2008, 7:12:24 PM12/29/08
to
On 27 Des, 14:49, kama...@gmail.com wrote:
> { Note cross-post to clc++m. -mod }
>
> Hello,
>
> I am looking for a testsuite which validates that POD can be passed
> between modules written in C and ones writtn in C++ but with C
> interfaces. If there is a standard body that has identified valid/
> invalid behaviour in this regard and the test suite validates the
> same, pl let me know the details.

The question is unclear and to my mind meaningless.

Please try to provide a concrete example.

With complete code that can be compiled (or not, if that is the
point).


Cheers & hth.,

- Alf

Francis Glassborow

unread,
Dec 31, 2008, 3:14:42 PM12/31/08
to
alfps wrote:
> On 27 Des, 14:49, kama...@gmail.com wrote:
>> { Note cross-post to clc++m. -mod }
>>
>> Hello,
>>
>> I am looking for a testsuite which validates that POD can be passed
>> between modules written in C and ones writtn in C++ but with C
>> interfaces. If there is a standard body that has identified valid/
>> invalid behaviour in this regard and the test suite validates the
>> same, pl let me know the details.
>
> The question is unclear and to my mind meaningless.
>
> Please try to provide a concrete example.
>
> With complete code that can be compiled (or not, if that is the
> point).
>
>


I think that the OP is a bit confused. A POD can always be used in mixed
C/C++ code PROVIDING that the C and C++ compilers are compatible. That
has nothing to do with the code itself and everything to do with the
compilers.


--
Note that robinton.demon.co.uk addresses are no longer valid.

Martin Bonner

unread,
Jan 1, 2009, 1:43:27 PM1/1/09
to
On Dec 31 2008, 8:14 pm, Francis Glassborow

<francis.glassbo...@btinternet.com> wrote:
> alfps wrote:
> > On 27 Des, 14:49, kama...@gmail.com wrote:
> >> { Note cross-post to clc++m. -mod }
>
> >> Hello,
>
> >> I am looking for a testsuite which validates that POD can be passed
> >> between modules written in C and ones writtn in C++ but with C
> >> interfaces. If there is a standard body that has identified valid/
> >> invalid behaviour in this regard and the test suite validates the
> >> same, pl let me know the details.
>
> > The question is unclear and to my mind meaningless.
>
> > Please try to provide a concrete example.
>
> > With complete code that can be compiled (or not, if that is the
> > point).
>
> I think that the OP is a bit confused. A POD can always be used in mixed
> C/C++ code PROVIDING that the C and C++ compilers are compatible. That
> has nothing to do with the code itself and everything to do with the
> compilers.

I don't think the OP is confused at all. He is asking for a test
suite to confirm that the two compilers /are/ compatible. I don't
know if such a thing exists

--

Puppet_Sock

unread,
Jan 2, 2009, 12:53:10 PM1/2/09
to
On Jan 1, 1:43 pm, Martin Bonner <martinfro...@yahoo.co.uk> wrote:
[snips]

> I don't think the OP is confused at all. He is asking for a test
> suite to confirm that the two compilers /are/ compatible. I don't
> know if such a thing exists

A test suite would not be my first choice for determining
if two compilers were compatible in this regard.

Indeed, it wouldn't even be on my list.

Reading the vendor's documentation would be high on my list.
Socks

Joe Smith

unread,
Jan 4, 2009, 11:47:10 PM1/4/09
to

"Puppet_Sock" <puppe...@hotmail.com> wrote in message
news:a0a43e56-2db8-4e3b...@e22g2000vbe.googlegroups.com...

> On Jan 1, 1:43 pm, Martin Bonner <martinfro...@yahoo.co.uk> wrote:
> [snips]
>> I don't think the OP is confused at all. He is asking for a test
>> suite to confirm that the two compilers /are/ compatible. I don't
>> know if such a thing exists
>
> A test suite would not be my first choice for determining
> if two compilers were compatible in this regard.
>
> Indeed, it wouldn't even be on my list.
>
> Reading the vendor's documentation would be high on my list.
> Socks

True, although such a test suite may be useful for the writter of a C++
implementation that is attempting to maintain C ABI compatibility with a
particular C compiler.

Of course, if there is a full ABI test suite available, that would be the
prefered tool.

0 new messages