Project about Atomic Operations
Yang Wei
wei.a.yang at gmail.com
Mon Mar 26 14:43:51 UTC 2012
Hi Huber,
The implementation of C 2011 standard should also be part of compiler,right? I am not really familiar with its implementation. And the C 2011 support all architecture atomic primitive?
在 2012-3-26,22:27,Sebastian Huber <sebastian.huber at embedded-brains.de> 写道:
> Hello Wenjie,
>
> I mean not some GCC specific builtins. I mean the C 2011 standard.
>
> On 03/26/2012 03:40 PM, yangwei weiyang wrote:
>> Hi Huber:
>> The atomic operations supported by c and c++ standard is built in
>> the compiler, like
>> GCC has some build-in atomic operations functions. you can see
>> http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html.
>> But Not all operations are supported by all target processors and
>> it is designed as a
>> standard library not for a operation system. So in my opinion we can
>> refer its implementation
>> but can use them directly.
>>
>> Wenjie
>> Best Regards
>>
>> 2012/3/26 Sebastian Huber<sebastian.huber at embedded-brains.de>:
>>> Hi,
>>>
>>> atomic operations are now supported by the recent C and C++ standard. See
>>>
>>> http://en.wikipedia.org/wiki/C11_%28C_standard_revision%29
>>> http://www.hpl.hp.com/personal/Hans_Boehm/c++mm/
>>>
>>> Why don't we simply use them?
>>>
>>> --
>>> 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.
>>>
>>> _______________________________________________
>>> rtems-users mailing list
>>> rtems-users at rtems.org
>>> http://www.rtems.org/mailman/listinfo/rtems-users
>>
>>
>>
>
>
> --
> 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