Gsoc2012: Atomic operation for RTEMS

Sebastian Huber sebastian.huber at embedded-brains.de
Tue May 22 07:18:47 UTC 2012


On 05/17/2012 04:22 AM, Chris Johns wrote:
>
> This is a key question and one which makes the this area of work complicated in
> the future. RTEMS is both the kernel and application and this means the atomic
> operations API we provide for the kernel to use and that provided by a standard
> language feature need to co-exist.
>
> Personally I am not convinced C++ is the best place to depend on this type of
> thing and I would be rather cautious before committing an application
> development to it. Yes the API makes the code portable and the functionality
> stable across platforms, how-ever everyone needs to get to that point first and
> specifically the compiler writers before it is true. I have only ever developed
> a couple of fully C++ embedded applications. Most are a mixture of C and C++
> and that is one area I am not sure about. RTEMS needs to provide support to C
> applications.
>
> RTEMS has to support the C++ standard but do we need to do this now ? I agree
> with you we should develop our own kernel level API and provide it as an RTEMS
> API, ie following the classic API. How this relates to the C++ support in the
> future can be visited one we have something our C based kernel can use.

The atomic primitives are also part of the C standard library (C11).  See also 
section 7.17 Atomics <stdatomic.h> in the 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 devel mailing list