Re: Default rep specs for record types - documented??
- From: Stephen Leake <stephen_leake@xxxxxxx>
- Date: Sat, 05 Nov 2005 05:14:10 -0500
"Ed Falis" <falis@xxxxxxxxxxx> writes:
> But if you order the components the same in both languages, and use
> pragma Convention (C, ...) on the Ada side, the Ada record layout
> will match the C struct layout.
This has always bothered me, because it is so poorly defined.
Which C compiler? With which settings of the various layout options?
If I'm compiling with GNAT, I could guess that it's 'gcc' and 'the
defaults'; but the point of rep clauses is to not guess.
But if I'm compiling with GNAT and trying to interface to Borland C
with the equivalent of 'pack structs', it's just plain wrong.
On VAX and Alpha, this might have some meaning, because DEC defined a
binary API. But on x86, it's just a guess.
--
-- Stephe
.
- References:
- Default rep specs for record types - documented??
- From: Anonymous Coward
- Re: Default rep specs for record types - documented??
- From: Steve
- Re: Default rep specs for record types - documented??
- From: Anonymous Coward
- Re: Default rep specs for record types - documented??
- From: Stephen Leake
- Re: Default rep specs for record types - documented??
- From: Stephen Leake
- Re: Default rep specs for record types - documented??
- From: Britt Snodgrass
- Re: Default rep specs for record types - documented??
- From: Lauri Ora
- Re: Default rep specs for record types - documented??
- From: Anonymous Coward
- Re: Default rep specs for record types - documented??
- From: Ed Falis
- Default rep specs for record types - documented??
- Prev by Date: Bindings for high-performance vector x matrix multiplication libraries?
- Next by Date: Re: Default rep specs for record types - documented??
- Previous by thread: Re: Default rep specs for record types - documented??
- Next by thread: Re: Default rep specs for record types - documented??
- Index(es):
Relevant Pages
|