[Beowulf] Stroustrup regarding multicore

Tim Cutts tjrc at sanger.ac.uk
Tue Aug 26 16:09:20 EDT 2008


On 26 Aug 2008, at 12:53 pm, Perry E. Metzger wrote:

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

That would be interesting, because C99 is a pretty recent document,  
really, in C terms.  Were they, in drafting the C99 document, setting  
into stone what was de facto for most compilers?  Or is that  
requirement in an older standard?

Tim


-- 
 The Wellcome Trust Sanger Institute is operated by Genome Research 
 Limited, a charity registered in England with number 1021457 and a 
 company registered in England with number 2742969, whose registered 
 office is 215 Euston Road, London, NW1 2BE. 
_______________________________________________
Beowulf mailing list, Beowulf at beowulf.org
To change your subscription (digest mode or unsubscribe) visit http://www.beowulf.org/mailman/listinfo/beowulf



More information about the Beowulf mailing list