public inbox for ecos-discuss@sourceware.org
 help / color / mirror / Atom feed
* [ECOS] code size
@ 2001-01-31 20:51 Suet Fei Li
  2001-01-31 21:36 ` Jonathan Larmour
  0 siblings, 1 reply; 4+ messages in thread
From: Suet Fei Li @ 2001-01-31 20:51 UTC (permalink / raw)
  To: 'ecos-discuss@sourceware.cygnus.com'

Hi guys, I wrote an application using ecos as the OS. The total code size is
33K (it is for ARM). The application takes 8K. I would like to know how I
can reduce the total code size, like what sort of configurable options I
should use. I am directly calling the ecos kernels in my application, and
the scheduler is a multi-queue one.

Any input will be greatly appreciated.


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] code size
  2001-01-31 20:51 [ECOS] code size Suet Fei Li
@ 2001-01-31 21:36 ` Jonathan Larmour
  0 siblings, 0 replies; 4+ messages in thread
From: Jonathan Larmour @ 2001-01-31 21:36 UTC (permalink / raw)
  To: Suet Fei Li; +Cc: 'ecos-discuss@sourceware.cygnus.com'

Suet Fei Li wrote:
> 
> Hi guys, I wrote an application using ecos as the OS. The total code size is
> 33K (it is for ARM). The application takes 8K. I would like to know how I
> can reduce the total code size, like what sort of configurable options I
> should use. I am directly calling the ecos kernels in my application, and
> the scheduler is a multi-queue one.
> 
> Any input will be greatly appreciated.

Difficult to tell without looking at the detail. But you may want to do an
arm-elf-objdump --syms to see where the space is going.

Make sure you remove unnecessary packages from your configuration. In
particular, disable device drivers if you don't use them. Make sure you are
using selective linking by compiling everything (including your
application) with -ffunction-sections -fdata-sections, and linking with
-Wl,--gc-sections.

For what it's worth, you should be able to reduce the size a lot from 33K.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] code size
  2001-01-31 22:11 ` Jonathan Larmour
@ 2001-02-01  2:01   ` Jesper Skov
  0 siblings, 0 replies; 4+ messages in thread
From: Jesper Skov @ 2001-02-01  2:01 UTC (permalink / raw)
  To: ecos-discuss

>>>>> "Jonathan" == Jonathan Larmour <jlarmour@redhat.com> writes:

Jonathan> If you are not using any diag output stuff at all you could
Jonathan> also probably disable CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT. Let
Jonathan> the list know if you have any problems.

I don't think that can easily be done with the old code. The stuff I
hope to get checked in today should allow it though. I'll make sure to
test that before I commit.

Jesper

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [ECOS] code size
       [not found] <711F6B80B5B4D211BA900090272AB7649DB52B@noyce.eecs.berkeley.edu>
@ 2001-01-31 22:11 ` Jonathan Larmour
  2001-02-01  2:01   ` Jesper Skov
  0 siblings, 1 reply; 4+ messages in thread
From: Jonathan Larmour @ 2001-01-31 22:11 UTC (permalink / raw)
  To: Suet Fei Li, eCos discussion

Suet Fei Li wrote:
> 
> Thanx a lot!
> there are lots of diag_... hal_diag stuff that I do not need. Is there a way
> to get rid of them.
> 
> P.S. my code is 23K now.

Generate a linker map by using the the option on the link line:
"-Wl,-Map,foo" where foo is the name of the map file. This will tell you
exactly why each symbol is pulled in. 

If you are not using any diag output stuff at all you could also probably
disable CYGSEM_HAL_VIRTUAL_VECTOR_SUPPORT. Let the list know if you have
any problems.

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

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-02-01  2:01 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2001-01-31 20:51 [ECOS] code size Suet Fei Li
2001-01-31 21:36 ` Jonathan Larmour
     [not found] <711F6B80B5B4D211BA900090272AB7649DB52B@noyce.eecs.berkeley.edu>
2001-01-31 22:11 ` Jonathan Larmour
2001-02-01  2:01   ` 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).