* [ECOS] Ecos size
@ 2008-04-04 13:17 Huguenin Frédéric
2008-04-04 13:17 ` Markus Schaber
` (3 more replies)
0 siblings, 4 replies; 9+ messages in thread
From: Huguenin Frédéric @ 2008-04-04 13:17 UTC (permalink / raw)
To: ecos-discuss
Hello,
I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
program. But when I compile, the size of my executable is 900kbytes.
I would want to know how can I reduce the size of eCos. What don't I need ?
thanks
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ECOS] Ecos size
2008-04-04 13:17 [ECOS] Ecos size Huguenin Frédéric
@ 2008-04-04 13:17 ` Markus Schaber
[not found] ` <47F62A69.2000300@gaisler.com>
` (2 subsequent siblings)
3 siblings, 0 replies; 9+ messages in thread
From: Markus Schaber @ 2008-04-04 13:17 UTC (permalink / raw)
To: ecos-discuss
Hi, Huguenin,
Huguenin Frédéric <Frederic.Huguenin@he-arc.ch> wrote:
> I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
> program. But when I compile, the size of my executable is 900kbytes.
> I would want to know how can I reduce the size of eCos. What don't I need ?
With ecos, ask the question the other way round. Ask what you need, and
drop everything else.
Additionally, some compiler options (e. g. -Os for size optimization)
may help a little.
Regards,
Markus
--
Markus Schaber | Logical Tracking&Tracing International AG
Dipl. Inf. | Software Development GIS
Fight against software patents in Europe! www.ffii.org
www.nosoftwarepatents.org
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ECOS] Ecos size
[not found] ` <47F62A69.2000300@gaisler.com>
@ 2008-04-04 13:23 ` Jiri Gaisler
0 siblings, 0 replies; 9+ messages in thread
From: Jiri Gaisler @ 2008-04-04 13:23 UTC (permalink / raw)
To: Huguenin Frédéric; +Cc: ecos-discuss
Make sure you measure the executable with the 'size' utility
(e.g. sparc-elf-size app.exe), and not just looking at the
file size. Most of the file size is debugging symbols, which
are not loaded into the prom.
Jiri.
Huguenin Frédéric wrote:
> Hello,
>
> I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
> program. But when I compile, the size of my executable is 900kbytes.
> I would want to know how can I reduce the size of eCos. What don't I need ?
> thanks
>
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ECOS] Ecos size
2008-04-04 13:17 [ECOS] Ecos size Huguenin Frédéric
2008-04-04 13:17 ` Markus Schaber
[not found] ` <47F62A69.2000300@gaisler.com>
@ 2008-04-04 13:46 ` Edgar Grimberg
2008-04-04 14:41 ` [ECOS] " Grant Edwards
3 siblings, 0 replies; 9+ messages in thread
From: Edgar Grimberg @ 2008-04-04 13:46 UTC (permalink / raw)
To: Huguenin Frédéric; +Cc: ecos-discuss
Huguenin Frédéric wrote:
> Hello,
>
> I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
> program. But when I compile, the size of my executable is 900kbytes.
> I would want to know how can I reduce the size of eCos. What don't I need ?
> thanks
>
>
Is the size of the .elf that big? If you are building a ROM application,
you can try to "objcopy -O binary" it to a bin file and see the size of
that.
Edgar
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* [ECOS] Re: Ecos size
2008-04-04 13:17 [ECOS] Ecos size Huguenin Frédéric
` (2 preceding siblings ...)
2008-04-04 13:46 ` Edgar Grimberg
@ 2008-04-04 14:41 ` Grant Edwards
2008-04-04 14:53 ` Grant Edwards
3 siblings, 1 reply; 9+ messages in thread
From: Grant Edwards @ 2008-04-04 14:41 UTC (permalink / raw)
To: ecos-discuss
On 2008-04-04, Huguenin Frédéric <Frederic.Huguenin@he-arc.ch> wrote:
> I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
> program. But when I compile, the size of my executable is 900kbytes.
> I would want to know how can I reduce the size of eCos. What don't I need?
Given your list of feature requirements, I would say you don't
need anything. I can come up with a 0KB configuration that
should meet your requirements.
--
Grant Edwards grante Yow! FROZEN ENTREES may
at be flung by members of
visi.com opposing SWANSON SECTS ...
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* [ECOS] Re: Ecos size
2008-04-04 14:41 ` [ECOS] " Grant Edwards
@ 2008-04-04 14:53 ` Grant Edwards
0 siblings, 0 replies; 9+ messages in thread
From: Grant Edwards @ 2008-04-04 14:53 UTC (permalink / raw)
To: ecos-discuss
On 2008-04-04, Grant Edwards <grante@visi.com> wrote:
>> I want to use ecos with 500kbytes of ROM. I just want to use a 150kbytes C
>> program. But when I compile, the size of my executable is 900kbytes.
>> I would want to know how can I reduce the size of eCos. What don't I need?
>
> Given your list of feature requirements, I would say you don't
> need anything. I can come up with a 0KB configuration that
> should meet your requirements.
Perhaps that came across as overly sarcastic. My point is that
the "C" in eCos stands for "Configurable". eCos can be
anywhere from a few KB to a few MB. It depends entirely on
what features you need.
--
Grant Edwards grante Yow! I'd like some JUNK
at FOOD ... and then I want to
visi.com be ALONE --
--
Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos
and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ECOS] ecos size
2001-08-08 4:48 [ECOS] ecos size Christoph Obermair
2001-08-08 5:04 ` Sebastien ANDRE
@ 2001-08-08 5:16 ` Jesper Skov
1 sibling, 0 replies; 9+ messages in thread
From: Jesper Skov @ 2001-08-08 5:16 UTC (permalink / raw)
To: Christoph Obermair; +Cc: ecos-discuss
>>>>> "Christoph" == Christoph Obermair <christoph.obermair@writeme.com> writes:
Christoph> hi everybody, what do i have to do, to get ecos smaller? i
Christoph> built a library for the e7t target, only using the
Christoph> following packages:
Christoph> CYGPKG_HAL_ARM CYGPKG_HAL_ARM_E7T CYGPGK_HAL
Christoph> CYGPKG_KERNEL CYGPKG_MEMALLOC CYGPKG_ISOINFRA CYGPKG_INFRA
Christoph> when compiling a kernel with a very simple c program the
Christoph> file a.out has a size of 380k, which is much too big i
Christoph> think. what am i doing wrong?
Use arm-elf-size on the file.
Jesper
^ permalink raw reply [flat|nested] 9+ messages in thread
* Re: [ECOS] ecos size
2001-08-08 4:48 [ECOS] ecos size Christoph Obermair
@ 2001-08-08 5:04 ` Sebastien ANDRE
2001-08-08 5:16 ` Jesper Skov
1 sibling, 0 replies; 9+ messages in thread
From: Sebastien ANDRE @ 2001-08-08 5:04 UTC (permalink / raw)
To: egcs; +Cc: ecos-discuss
Hi,
Maybe it's because many debug informations are presents in the ELF file!!
Try an "arm-elf-strip a.out" for suppress it and see the real size !!
or an "arm-elf-size a.out"
Sebastien.
Christoph Obermair wrote:
> hi everybody,
>
> what do i have to do, to get ecos smaller?
> i built a library for the e7t target, only using the following packages:
>
> CYGPKG_HAL_ARM
> CYGPKG_HAL_ARM_E7T
> CYGPGK_HAL
> CYGPKG_KERNEL
> CYGPKG_MEMALLOC
> CYGPKG_ISOINFRA
> CYGPKG_INFRA
>
> when compiling a kernel with a very simple c program the file a.out has a size of 380k, which is much too big i think.
> what am i doing wrong?
>
> christoph
> --
>
> _______________________________________________
> Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
> http://www.net2phone.com/cgi-bin/link.cgi?143
^ permalink raw reply [flat|nested] 9+ messages in thread
* [ECOS] ecos size
@ 2001-08-08 4:48 Christoph Obermair
2001-08-08 5:04 ` Sebastien ANDRE
2001-08-08 5:16 ` Jesper Skov
0 siblings, 2 replies; 9+ messages in thread
From: Christoph Obermair @ 2001-08-08 4:48 UTC (permalink / raw)
To: ecos-discuss
hi everybody,
what do i have to do, to get ecos smaller?
i built a library for the e7t target, only using the following packages:
CYGPKG_HAL_ARM
CYGPKG_HAL_ARM_E7T
CYGPGK_HAL
CYGPKG_KERNEL
CYGPKG_MEMALLOC
CYGPKG_ISOINFRA
CYGPKG_INFRA
when compiling a kernel with a very simple c program the file a.out has a size of 380k, which is much too big i think.
what am i doing wrong?
christoph
--
_______________________________________________
Talk More, Pay Less with Net2Phone Direct(R), up to 1500 minutes free!
http://www.net2phone.com/cgi-bin/link.cgi?143
^ permalink raw reply [flat|nested] 9+ messages in thread
end of thread, other threads:[~2008-04-04 14:41 UTC | newest]
Thread overview: 9+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-04 13:17 [ECOS] Ecos size Huguenin Frédéric
2008-04-04 13:17 ` Markus Schaber
[not found] ` <47F62A69.2000300@gaisler.com>
2008-04-04 13:23 ` Jiri Gaisler
2008-04-04 13:46 ` Edgar Grimberg
2008-04-04 14:41 ` [ECOS] " Grant Edwards
2008-04-04 14:53 ` Grant Edwards
-- strict thread matches above, loose matches on Subject: below --
2001-08-08 4:48 [ECOS] ecos size Christoph Obermair
2001-08-08 5:04 ` Sebastien ANDRE
2001-08-08 5:16 ` Jesper Skov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).