This is the mail archive of the ecos-discuss@sources.redhat.com mailing list for the eCos project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Hello Code size


Dzanh Nguyen wrote:
> 
> I am new with the Ecos. I build the example hello.c and looked at the map
> that the linker generated, the total code size for the hello is around 42K.
> Is Ecos footprint actually that big or I did something wrong?

eCos is a highly configurable operating system. The default configuration
mostly tries to add functionality, rather than reduce size. You should
easily be able to reduce that footprint by orders of magnitude when you
understand the requirements of your application. For example, for hello
world, you probably wouldn't include the kernel package at all since you
aren't using multiple threads. There are various libc stdio features like
stdio buffering that could be disabled, etc.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]