This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Re: how to choose the package and the multi-thread
- To: kiki w <kiki_wus at yahoo dot com>
- Subject: Re: [ECOS] how to choose the package and the multi-thread
- From: Jonathan Larmour <jlarmour at redhat dot com>
- Date: Fri, 05 Oct 2001 17:50:16 +0100
- Cc: ecos-discuss at sources dot redhat dot com
- Organization: Red Hat UK Ltd.
- References: <20011005164003.49404.qmail@web11303.mail.yahoo.com>
kiki w wrote:
>
> Hi,
>
> I will be highly appreciated if any one could give me
> some information for the following questions:
>
> 1. I am trying to write code for a custome board,
> but I find that the execuable code generated by
> using eCOS is very big, normally it willl be around
> 1 Mbytes, since we do not have such a large ROM
> to store it.
You do know that file sizes are not related to real sizes. Do get the real
size use TARGET-elf-size <executable> e.g. arm-elf-size hello
The ROM size would be the sum of the text and data columns.
> My question is: in order to make the
> application code as small as possible, How can I
> choose the package to be installed when configuring
> eCos( I only want the kernel and multi-threads
> supported).
Use the configuration tool to add and remove packages. There are also
plenty of options to configure within the packages.
> 2. I know a lot functions of eCos need
> the redboot running on the board, my question is:
> if I only want to use the kernel and muiti-threads
> functions of eCos, do I have to port redboot on
> our board?
No, you can build eCos applications to run directly from ROM. That's all
RedBoot is - an eCos applicatino built to run from ROM.
> if I only include the "uitron" package,
> will it support multi-threads?
You need the kernel package as well - the uitron package uses it.
Jifl
--
Red Hat, Rustat House, Clifton Road, Cambridge, UK. Tel: +44 (1223) 271062
Maybe this world is another planet's Hell -Aldous Huxley || Opinions==mine