This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: Arguments to main()
- To: jalfredoc at netscape dot net
- Subject: Re: [ECOS] Arguments to main()
- From: Bart Veer <bartv at redhat dot com>
- Date: Tue, 29 May 2001 15:19:59 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- References: <14BD43AA.09566883.030B6216@netscape.net>
- Reply-To: bartv at redhat dot com
>>>>> " " == jalfredoc <jalfredoc@netscape.net> writes:
> I am working under linux synthetic target and using the ISO
> standar C library package, I need to supply arguments to
> main(), how can I configure my program to do this?
AFAIK this is not currently supported - the synthetic target makes no
attempt to identify its arguments and environment variables during
startup. There is an argument that this is the right behaviour because
for a typical embedded application booting from ROM or flash there is
no way of supplying command line arguments either, hence people should
not be developing their applications with a dependency on such
functionality.
Bart