Re: Default rep specs for record types - documented??



"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
.



Relevant Pages

  • Re: writing book of poetry
    ... > I am compiling a book of poetry and need help with the layout ... We do not do free design consultany. ...
    (microsoft.public.publisher)
  • Memoir and checkandfixthelayout
    ... I'm facing a problem with the layout. ... I have change to memoir and not ... However when "compiling" and the document presents some strange things as ...
    (comp.text.tex)
  • Re: writing book of poetry
    ... |I am compiling a book of poetry and need help with the layout ... Prev by Date: ...
    (microsoft.public.publisher)