Hi Cyril,
> So something as:
> int ret;
> __asm__ __volatile__("": : :"memory");
> ret = (counter = counter + 1);
> __asm__ __volatile__("": : :"memory");
> return ret;
> Should work, but I do not have any sparc hardware for testing...
Thanks a lot! I'll try to find some sparc to test it :).
Kind regards,
Petr