libraw1394 struct layouts, i386 vs. x86_64

Kevin D. Clark kevin_d_clark at comcast.net
Wed Jan 7 14:47:14 EST 2009


Michael ODonnell writes:

> I've been looking for something like a magic compiler switch to force
> the desired 64bit-style alignments to our 32bit builds - anybody know
> what the trick is in this case?

The only way that I've ever been able to be 100% sure of the way a
structure gets packed with all of the architectures/compilers I've had
to deal with was to pack the structure myself....pretty much by hand.

I also always as a matter of paranoia sprinkle my code with asserts()
to make sure that the compiler is doing *exactly* what I want.  Some of
the readers of this list might appreciate this:

  http://kdc-blog.blogspot.com/2008/03/debugging-war-story-2.html

...which describes how I write these asserts().

Kind regards,

--kevin
-- 
GnuPG ID: B280F24E                Meet me by the knuckles
alumni.unh.edu!kdc                of the skinny-bone tree.
http://kdc-blog.blogspot.com/     -- Tom Waits


More information about the gnhlug-discuss mailing list