Re: C compilers with at least C11 threads, atomics and membars?

Liste des GroupesRevenir à cl c  
Sujet : Re: C compilers with at least C11 threads, atomics and membars?
De : david.brown (at) *nospam* hesbynett.no (David Brown)
Groupes : comp.lang.c
Date : 05. Aug 2024, 21:24:11
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v8rcdc$11umu$1@dont-email.me>
References : 1 2 3 4
User-Agent : Mozilla Thunderbird
On 05/08/2024 20:51, Blue-Maned_Hawk wrote:
Scott Lurndal wrote:
 
Blue-Maned_Hawk <bluemanedhawk@invalid.invalid> writes:
Standard C threading and atomics are part of the standard library, not
the compiler.  I don't know what you mean by the term ‘membars’, but if
you could define that, i might be able to answer.
>
>
They are referring to various forms of barrier instructions used to
synchronize memory accesses between independent processors.
>
I think you'll find that the compilers do have a role to play with
respect to standard C threading and atomics.
 Standard C threading and atomics are accomplished through subroutines
defined in the standard library in headers that need not be supported by
freestanding implementations.
  
Atomics - including the _Atomic keyword - are discussed throughout the C standards, not just in the standard library sections.  Fences (aka barriers) are also discussed long before the library part.  It may be that people use the standard library headers to access these features, and they are optional in a given implementation, but they are very much an integrated part of compilers and not merely functions declared in headers.

Date Sujet#  Auteur
5 Aug 24 * C compilers with at least C11 threads, atomics and membars?8Chris M. Thomasson
5 Aug 24 +* Re: C compilers with at least C11 threads, atomics and membars?3Thiago Adams
5 Aug 24 i`* Re: C compilers with at least C11 threads, atomics and membars?2Chris M. Thomasson
5 Aug 24 i `- Re: C compilers with at least C11 threads, atomics and membars?1Bonita Montero
5 Aug 24 `* Re: C compilers with at least C11 threads, atomics and membars?4Blue-Maned_Hawk
5 Aug 24  `* Re: C compilers with at least C11 threads, atomics and membars?3Blue-Maned_Hawk
5 Aug 24   +- Re: C compilers with at least C11 threads, atomics and membars?1David Brown
5 Aug 24   `- Re: C compilers with at least C11 threads, atomics and membars?1Chris M. Thomasson

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal