managers

Sebastian Huber sebastian.huber at embedded-brains.de
Tue Jun 19 13:08:17 UTC 2012


On 06/19/2012 02:38 PM, Pierre Ficheux wrote:
>
> My question was actually about .exe size reduction (a kind of FAQ...). I've
> read some discussion (http://comments.gmane.org/gmane.os.rtems.user/10658)
> about removing some libs:
>
> "You need disable MINIIMFS, libio and libc, and exclude the console from your
> Makefile. This will make your minium.exe less than 20K"
>
> Actually how is it possible? modifying source tree?

No, you can do this at link time.  You have to know the right configuration 
parameters.  This should give the absolute minimum:

#include <rtems.h>

static void *idle_body(uintptr_t ignored)
{
   while (true) {
     /* Do nothing */
   }

   return NULL;
}

#define CONFIGURE_INIT

#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

#define CONFIGURE_APPLICATION_DISABLE_FILESYSTEM

#define CONFIGURE_DISABLE_NEWLIB_REENTRANCY

#define CONFIGURE_DISABLE_CLASSIC_API_NOTEPADS

#define CONFIGURE_UNIFIED_WORK_AREAS

#define CONFIGURE_MAXIMUM_PRIORITY 3

#define CONFIGURE_IDLE_TASK_INITIALIZES_APPLICATION

#define CONFIGURE_IDLE_TASK_BODY idle_body

#include <rtems/confdefs.h>

-- 
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