Re: Warning: The structure contains misaligned fields
- From: nospam@xxxxxxxxxxxxx (Richard Maine)
- Date: Mon, 28 Apr 2008 21:10:09 -0700
Craig Powers <enigma@xxxxxxxxxx> wrote:
jamesgiles@xxxxxxx wrote:
But both the above have to interoperate
with:
integer :: ivar(6)
common /aBlock/ ivar
Yeah, that comes back to "depending on what restrictions are imposed on
COMMON." I wasn't certain of what those were, and I was too lazy to
look them up, but it does look like the COMMON side of thing enforces
SEQUENCE to impose order as a practical matter.
Only directly for numeric sequence and character sequence, which is a
pretty restricted set. But I do find it a bit hard to imagine an
implementation actually using different rules for numeric and character
sequence than for other sequence types. Padding differences are
plausible, but padding to numeric storage unit boundaries doesn't come
up in numeric sequence anyway (padding to greater boundaries would be a
different matter).
In the end, I come to the same conclusion - that SEQUENCE is likely to
imply ordering (though not lack of padding) as a practical matter. I
just note that there is an extra step of the deduction for non-numeric
and non-character sequence types. Reordering them wouldn't be as
impractical... to the extent that I might imagine it happening, though
odds seem against it.
There just might be compilers that notice special cases like types that
aren't used in common or otherwhere that it matters. Seems odd to me to
special-case that, but I'm thinking I recall someone (Bob Corbett
perhaps?) mentioning such special casing. I might well misrecall.
--
Richard Maine | Good judgement comes from experience;
email: last name at domain . net | experience comes from bad judgement.
domain: summertriangle | -- Mark Twain
.
- References:
- Warning: The structure contains misaligned fields
- From: blitheli
- Re: Warning: The structure contains misaligned fields
- From: Gordon Sande
- Re: Warning: The structure contains misaligned fields
- From: blitheli
- Re: Warning: The structure contains misaligned fields
- From: Craig Powers
- Re: Warning: The structure contains misaligned fields
- From: jamesgiles@xxxxxxx
- Re: Warning: The structure contains misaligned fields
- From: Craig Powers
- Re: Warning: The structure contains misaligned fields
- From: jamesgiles@xxxxxxx
- Re: Warning: The structure contains misaligned fields
- From: Craig Powers
- Warning: The structure contains misaligned fields
- Prev by Date: Re: variable length of integer
- Next by Date: Re: GUIs with Dislin -more examples
- Previous by thread: Re: Warning: The structure contains misaligned fields
- Next by thread: vintage F77 compilers for sale
- Index(es):
Relevant Pages
|