On 20/07/17 11:34, Denis Obrezkov wrote:

2017-07-18 14:10 GMT+02:00 Joel Sherrill <joel.sherr...@gmail.com <mailto:joel.sherr...@gmail.com>>:

    I am not near a computer to check but is there a section in the
    Configuring a System chapter with a low memory example? I know the
    individual options are documented but an example configuration
    with the safer ones to use might help users.

Could you point me to the documentation with the Configuration a System chapter?

For real low memory systems we need self-contained objects and a static initialization.

https://lists.rtems.org/pipermail/devel/2017-February/016874.html

For threads we can use something like this:

struct my_thread {
  Thread_Control thread;
  char space_for_thread_control_addons_and_tls_and_stack[N];
} a;

SYSINIT_THREAD(&a, sizeof(a));

If sizeof(a) is too small, then issue a fatal error.

--
Sebastian Huber, embedded brains GmbH

Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone   : +49 89 189 47 41-16
Fax     : +49 89 189 47 41-09
E-Mail  : sebastian.hu...@embedded-brains.de
PGP     : Public key available on request.

Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.

_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel

Reply via email to