On Wednesday 03 July 2002 06:02, Steven Lynch wrote:
> What does a compiler error of " variable xxxx is misaligned. This may
> affect the efficiency of the code" mean?
>
>
I suppose that you are compiling for an architecture such as IA32, where data
of size up to 80 bits can be addressed at any byte address. On IA32, if a
datum spans a cache line boundary, there is a large time penalty involved in
assembling the pieces. This would be avoided by declaring your data so that
they fall on "natural" boundaries (8-byte boundaries for 64-bit data types...)
--
Tim Prince
|