[Top][All Lists]

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

Re: [Tinycc-devel] [PATCH 3/3] stdatomic: stdatomic.h header

From: Kyryl Melekhin
Subject: Re: [Tinycc-devel] [PATCH 3/3] stdatomic: stdatomic.h header
Date: Tue, 26 Jan 2021 21:54:45 +0000
User-agent: Heirloom mailx 12.4 7/29/08

Dmitry Selyutin <ghostman.sd@gmail.com> wrote:

> Ok, what exact parts do you suggest to change? For now I see that dropping
> __cplusplus guards should make the code C++-free; please, correct me if I'm
> wrong.

Yeah, pretty much just that. But I don't know if grishka will approve this
patch generally, because atomics are not in the standard, so it may be
against the tcc being "tiny". Also while atomics are probably better solution
so using something like mutex or spinlock, they are platform dependant and
they just kind of produce code smell, so personally I always tried to avoid
using them, because portability issues might arrise at some point, especially 
with new hardware and embeded world.

reply via email to

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