[Beowulf] Stroustrup regarding multicore

Perry E. Metzger perry at piermont.com
Tue Aug 26 09:53:11 PDT 2008

"Perry E. Metzger" <perry at piermont.com> writes:
> I have a copy of the C99 document and it is indeed required that the
> locations be consecutive (though there can of course be padding for
> alignment purposes if you have an array of structures).
> If you wish for me to quote chapter and verse from the document, I
> will.

For the hell of it, I whipped my copy out, since I was in the mood.

Indeed, if one looks at page 47 of Technical Corrigendum 2 of the C99
document, one learns that:

   An array type describes a contiguously allocated nonempty set of
   objects with a particular member object type, called the element

Note the phrase "contiguously allocated", which is a term of art in
the document meaning precisely what you think it means.

There is other text that similarly requires that array members be
allocated consecutively. I'll dig it out as many examples as people
insist on.

The original claim simply has no basis in fact.

Perry E. Metzger		perry at piermont.com

More information about the Beowulf mailing list