Re: [Jack-Devel] JACK 1.9.10 to test (for 64/32 bits compatibility)

PrevNext  Index
DateWed, 09 Jan 2013 08:28:46 +0000
From John Emmas <[hidden] at tiscali dot co dot uk>
ToJACK List <[hidden] at lists dot jackaudio dot org>
In-Reply-ToPaul Davis Re: [Jack-Devel] JACK 1.9.10 to test (for 64/32 bits compatibility)
On 8 Jan 2013, at 23:02, Paul Davis wrote:

> the original issue arose from situations where a 32 bit client wants to interact with a 64 bit server (or vice versa). that required that any structs in the public API (there are two) were packed identically regardless of the target word size. this has two dimensions - one being the compiler used and one being the word size, but we pretty much ignored compiler variations other than to make sure that the macros that were used to ensure the packing matched would work.
> 
> then a second issue arose, almost entirely because john wants to run a version of libjack compiled with msvc(++) in combination with a server built with gcc. this requires that EVERY struct in the private server/library "API" also be packed identically - in this case across compiler variations. 
> 
> finally, a third issue came up whereby the packing used to try to solve the second issue broke things on ARM.
> 

That sums the situation up pretty well but there's a fourth dimension which I must admit, I still don't fully understand.

The proposed solution to the first problem was JACK_ALIGNED_TYPE but I'm still not convinced about its validity.  Would the solution have worked universally or was it only working because the aligned types all happened to be 8 byes wide?

John
PrevNext  Index

1357720138.6042_0.ltw:2,a <EE6E9148-F970-43D2-9F7F-1260768208A4 at tiscali dot co dot uk>