|
From: | Michael Matz |
Subject: | Re: [Tinycc-devel] [PATCH] stdatomic: ld/st/xchg/cmpxchg on simple types |
Date: | Mon, 22 Mar 2021 17:05:33 +0100 (CET) |
User-agent: | Alpine 2.21 (LSU 202 2017-01-01) |
Hello, On Mon, 22 Mar 2021, Dmitry Selyutin wrote:
> Dispatching to per-type functions (instead of per-size ones) is mere busy work 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 visible It is visible. https://llvm.org/docs/Atomics.html ("libcalls" section) https://gcc.gnu.org/wiki/Atomic/GCCMM/LIbrary ("The library interface" section)
Yes, sure, that's the GCC (with LLVM following) implementation of runtime library. There is value in providing those as well, from TCCs side, I agree.
But there's also value in not implementing facilities twice. Are your stdatomic patches all on mob meanwhile? Ciao, Michael.
[Prev in Thread] | Current Thread | [Next in Thread] |