Project about Atomic Operations

Yang Wei wei.a.yang at gmail.com
Mon Mar 26 16:00:56 UTC 2012



在 2012-3-26,23:45,Sebastian Huber <sebastian.huber at embedded-brains.de> 写道:

> On 03/26/2012 05:32 PM, Gedare Bloom wrote:
>> Maybe we should design our API to be at least a superset of what the
>> compiler must provide for C11 compliance. Target architectures /
>> compilers that do not support the C11 atomics will need the atomic
>> operations implemented in assembly language. For targets that are
>> supported the API will thinly wrap the C-language atomic features and
>> can share code.
> 
> This is reinventing the wheel.  I don't see why we need the 100th atomic library.
> 
The C11 support for atomic primitive since 2011. Whether the compiler like gcc has support all the atomic primitives and for all architectures? And Rtems does not use standard library provided by compiler, so we still support all the atomic primitives on the newlib. There are also lots of work to do if we support all the atomic primitives defined by C11 standard
> -- 
> Sebastian Huber, embedded brains GmbH
> 
> Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
> Phone   : +49 89 18 90 80 79-6
> Fax     : +49 89 18 90 80 79-9
> E-Mail  : sebastian.huber at embedded-brains.de
> PGP     : Public key available on request.
> 
> Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.




More information about the users mailing list