From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jonathan Larmour To: Suet Fei Li Cc: "'ecos-discuss@sourceware.cygnus.com'" Subject: Re: [ECOS] code size Date: Wed, 31 Jan 2001 21:36:00 -0000 Message-id: <3A78F5E2.2F7DEE90@redhat.com> References: <711F6B80B5B4D211BA900090272AB7649DB52A@noyce.eecs.berkeley.edu> X-SW-Source: 2001-01/msg00521.html 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