[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types

From: Dmitry Selyutin
Subject: Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types
Date: Mon, 22 Mar 2021 18:37:35 +0300

> Dispatching to per-type functions (instead of per-size ones) is mere busy
Having a function per each supported size plus one for emulated locking is still safer than having a pair, where one deals with opaque data type.

> all that code is generated and implementation specific, not user
It is visible.
https://llvm.org/docs/Atomics.html ("libcalls" section)
https://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary ("The library interface" section)

Having a clear and reasonable error messages is reasonable as well. This is easier to implement it at compiler site.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]