Re: [Jack-Devel] packed data structures in jack2
[In plain C] the proper solution for the problem is to use appropriate
aritifical padding members in structs and eventually enforce packing as
well. The padding must be such that pointer used to access a give data
type must be aligned to that size (this is in the C standard). RISC
processors tend to generate exception for this, CISC only executes
slower. Some operating systems catch the [hardware] unaligned access
exception and do the byte-by-byte copy and some of them even generate a
log line.
The solution should be appropriate for C++ as well but I'll leave more
C++ affiliated ones to do such claims.
--
Nedko Arnaudov <GnuPG KeyID: 5D1B58ED>
1342722001.23467_0.ltw:2,a <87ipdjpq95.fsf at arnaudov dot name>