RTEMS on Virtex 4

Gempeler Stefan Stefan.Gempeler at nanotronic.ch
Mon Jun 3 10:20:08 UTC 2013


Hi Chris,

 

thank you for your reply.

I use the rtems_task Init(rtems_task_argument argument). The main()
version consumes more memory and does not produce any output:

 

------------------------------------------------------------------------
------------------------------------------

int main( void )

{

                printk( "main() -- Hello World\t\t%s, %s\n", __DATE__,
__TIME__ );

                sleep( 1 );

                exit( 0 );

}

/* configuration information */

#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

#define CONFIGURE_INIT

#include <rtems/confdefs.h>

------------------------------------------------------------------------
------------------------------------------

   text       data        bss         dec        hex    filename

141380    1756      4332   147468   2400c  rtems_libs.exe

------------------------------------------------------------------------
------------------------------------------

 

 

This version produces output:

------------------------------------------------------------------------
------------------------------------------

rtems_task Init( rtems_task_argument ignored )

{

  printk( "\n\n*** HELLO WORLD TEST ***\t\t%s, %s\n", __DATE__, __TIME__
);

  printk( "Hello World\t\t\t\t%s, %s\n", __DATE__, __TIME__ );

  printk( "*** END OF HELLO WORLD TEST ***\t\t%s, %s\n", __DATE__,
__TIME__ );

  exit( 0 );

}

/* NOTICE: the clock driver is explicitly disabled */

#define CONFIGURE_APPLICATION_DOES_NOT_NEED_CLOCK_DRIVER

#define CONFIGURE_APPLICATION_NEEDS_CONSOLE_DRIVER

#define CONFIGURE_MAXIMUM_TASKS            1

#define CONFIGURE_USE_DEVFS_AS_BASE_FILESYSTEM

#define CONFIGURE_RTEMS_INIT_TASKS_TABLE

#define CONFIGURE_INIT

#include <rtems/confdefs.h>

------------------------------------------------------------------------
------------------------------------------

   text       data        bss         dec        hex    filename

126392    1724      4004   132120   20418  rtems_libs.exe

------------------------------------------------------------------------
------------------------------------------

 

Stefan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20130603/25b20fb6/attachment-0001.html>


More information about the users mailing list