This is the mail archive of the
ecos-discuss@sourceware.org
mailing list for the eCos project.
Re: Compiling eCOS with IAR
- From: Andrew Lunn <andrew at lunn dot ch>
- To: Emmanuel Viollet <Emmanuel dot Viollet at webdyn dot com>
- Cc: ecos-discuss at ecos dot sourceware dot org
- Date: Thu, 11 May 2006 18:28:51 +0200
- Subject: Re: [ECOS] Compiling eCOS with IAR
- References: <446320E5.8050109@webdyn.com>
On Thu, May 11, 2006 at 01:32:53PM +0200, Emmanuel Viollet wrote:
> Hi.
>
> This may seem a stupid question, but is it possible to compile eCOS
> using the IAR compiler? From what I gather, IAR is much more efficient
> in terms of code space that GCC...
It is unlikely IAR will work. eCos uses quite a few gcc extensions.
If you need to make your application smaller i found that -Os has a
big effect compared to -O2 which is the normal eCos default. Also gcc
has been steadily getting better at producing smaller code. So try
using gcc 4.1. If RAM is a problem try tuning your stacks. For some
applications the default stack size is bigger than what is actually
needed. There is code to monitor stack using you can turn on.
Andrew
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss