SIMD support...

Walter Bright newshound2 at digitalmars.com
Thu Jan 5 18:16:47 PST 2012


On 1/5/2012 5:42 PM, Manu wrote:
> -- Alignment --
>
> This type needs to be 16byte aligned. Unaligned loads/stores are very expensive,
> and also tend to produce extremely costly LHS hazards on most architectures when
> accessing vectors in arrays. If they are not aligned, they are useless... honestly.
>
> ** Does this cause problems with class allocation? Are/can classes be allocated
> to an alignment as inherited from an aligned member? ... If not, this might be
> the bulk of the work.

The only real issue with alignment is getting the stack aligned to 16 bytes. 
This is already true of 64 bit code gen, and 32 bit code gen for OS X.


More information about the Digitalmars-d mailing list