by Sir_Cmpwn · 10y ago · 0 comments
What you get depends only on the processor type.
What does vary is whether or not any given platform has actually been tested - i.e. the code compiled on that platform, and the test programme run.
Currently, only ARM32, MIPS32 and x64 platforms are available, and so the test programme has only been run on those platforms.
Finally, I think you may have been misled in the same way another reader further down was; note that the matrix is the matrix of toolchains which are supported out-of-the-box, i.e. where the library ships with build files for those platforms.
It is NOT the matrix of the ONLY tooclhains which can be used.
It's not a matrix of the ONLY platforms which CAN work. Is that what you're thinking? Other platforms might well need the porting abstraction layer to be implemented (the Intel compiler might offer a different set of atomic intrinsics, for example), but that's what it's there for.
In any case, I did re-review the library today and I'll still pass on it because I'm very opinionated about C and this library doesn't match my opinions.
And I would like to see ARM64 support before I depend on this sort of thing, too, for what it's worth.
On Linux, the library uses the GCC atomic intrinsics. As such, the library funamentally supports any platform GCC supports with its atomic intrinsics. So the instructions are indeed machine specific, but they're provided by the compiler through a standard API.
Of course, actually getting something to work means actually compiling in on a given platform and seeing the test programme pass.
("Do you REALLY want to use that API? I think you should space your comments out a bit more. Hey, your battery is getting low! BTW, I've just emailed your entire source base to Google for assimilation.")