how to tailor the RTEMS application?

Joel Sherrill joel.sherrill at OARcorp.com
Thu May 24 18:57:13 UTC 2001


red-eye at 263.net wrote:
> 
> i am using ERC32CCS,i compiler the "hello-world" sample
> the exe file without debug information was 115k bytes
> it is too big ,how can i make it more small?
> has the config using confdefs.h in the "hello-world" already tailor the RTOS to the smallest?

confdefs.h just reduces RAM requirements at run-time, it does not leave
out code pieces.

A lot depends on the particular configure command given and how many 
dependencies are in the BSP.  printf itself is large.  See how 
large samples/minimum is in comparison.

You may have posix and itron apis enabled.

> /*
>  *  Simple test program -- simplified version of sample test hello.
>  */
> 
> #define TEST_INIT
> 
> #include <bsp.h>
> 
> #include <stdio.h>
> 
> rtems_task Init(
>   rtems_task_argument ignored
> )
> {
>   printf( "\n\n*** HELLO WORLD TEST ***\n" );
>   printf( "Hello World\n" );
>   printf( "*** END OF HELLO WORLD TEST ***\n" );
>   exit( 0 );
> }
> 
> /* configuration information */
> 
> #define CONFIGURE_TEST_NEEDS_CONSOLE_DRIVER
> 
> #define CONFIGURE_RTEMS_INIT_TASKS_TABLE
> 
> #define CONFIGURE_INIT
> 
> #include <confdefs.h>
> 
> /* end of file */
> 
> is the confdefs.h the only way to tailor RTEMS?
>                                                    thaks alot
> 
> _____________________________________________
> ÊýÂë²úÆ·ÐÂÉÏÊУ¬¿á http://shopping.263.net/category21.htm
> ¾«Æ·Ð¡¼ÒµçÓ­ÏÄÈÈÂô http://shopping.263.net/category23.htm

-- 
Joel Sherrill, Ph.D.             Director of Research & Development
joel at OARcorp.com                 On-Line Applications Research
Ask me about RTEMS: a free RTOS  Huntsville AL 35805
   Support Available             (256) 722-9985



More information about the users mailing list