managers
Sebastian Huber
sebastian.huber at embedded-brains.de
Tue Jun 19 14:03:03 UTC 2012
On 06/19/2012 03:45 PM, Pierre Ficheux wrote:
> Le 19/06/2012 15:08, Sebastian Huber a écrit :
>> On 06/19/2012 02:38 PM, Pierre Ficheux wrote:
>>>
>>> My question was actually about .exe size reduction (a kind of FAQ...).
>>> I've
>>> read some discussion
>>> (http://comments.gmane.org/gmane.os.rtems.user/10658)
>>> about removing some libs:
>>>
>>> "You need disable MINIIMFS, libio and libc, and exclude the console
>>> from your
>>> Makefile. This will make your minium.exe less than 20K"
>>>
>>> Actually how is it possible? modifying source tree?
>>
>> No, you can do this at link time. You have to know the right
>> configuration parameters. This should give the absolute minimum:
>
> It gives me the following for pc386 BSP:
>
> $ i386-rtems4.11-size o-optimize/mini.exe
> text data bss dec hex filename
> 152409 10304 8712 171425 29da1 o-optimize/mini.exe
This is probably a problem with the pc386 BSP. You may have a look at the
linker map. On ARM I have this:
arm-rtemseabi4.11-size o-optimize/app.exe
text data bss dec hex filename
26776 1752 33591424 33619952 200fff0 o-optimize/app.exe
This is a bit huge, since the POSIX API is enabled (which pulls in exit() etc.).
--
Sebastian Huber, embedded brains GmbH
Address : Obere Lagerstr. 30, D-82178 Puchheim, Germany
Phone : +49 89 18 90 80 79-6
Fax : +49 89 18 90 80 79-9
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the users
mailing list