
16 Jul
2014
16 Jul
'14
6:23 p.m.
2014-07-16 23:56 GMT+02:00 Johan Tibell
My reading of the docs was that if the platform doesn't support the needed instructions then GCC will generated a call to e.g. __sync_fetch_and_add_1, where that function *is provided by GCC* as a fallback.
I guess GCC would expect that somebody else will implement the given functionality by an external function.
Now I'm wondering if I'm supposed to supply that fallback.
I was told that you cannot reliably emulate those operations in user mode, without loss in performance.