06-05-2006 05:22 PM
06-08-2006 05:01 PM
Hey,
I am not very good at passing clusters to DLLs but I am good at searching for stuff I need ;). I think this link may be helpful to you.
Regards,
Ankita
06-09-2006 06:37 PM
06-12-2006 07:45 AM
Intel CPUs are fairly good in accessing data on non-aligned addresses. But they also have quite a complex section in their microcode to achieve this. Most other CPUs do bother less about improving unaligned data access and there the performance hit can be usually seen, with RISC CPUs like SPARC having really a huge performance hit.
@asweet wrote:
Thanks for the extra link! I'm also not very good at struct member alignment issues, but Rolf's gem of wisdom to use the #pragma pack keywords for the Labview structs in that thread seems to solve my problem, without needing any special padding in the clusters. Looking farther online it seems there could be a performance hit, but it's not noticable for what I'm doing.
Thanks again,
Adam