Command line arguments

Chris Johns chrisj at rtems.org
Thu Oct 14 21:21:21 UTC 2004


Joel Sherrill <joel at OARcorp.com> wrote:
> 
> If there is a generic way to get the arguments to a user "main",
> it might be nice to distribute it with RTEMS.
> 

I have code to do this but it is in my separate Coldfire BSP.

If someone wishes to include it let me know and I will dig it out and 
clean it up. It creates argc/argv and uses main as the application entry 
point. That is:

   boot_card -> rtems_premain -> main
              *

* rtems_premain is the Init task so rtems_premain and main is running as 
a task.


-- 
  Chris Johns



More information about the users mailing list