This is the mail archive of the
newlib@sources.redhat.com
mailing list for the newlib project.
Re: dynamic or static linking
- To: joerg dot preuss at jmpreuss-edv dot de
- Subject: Re: dynamic or static linking
- From: Andrew Stubbs <Andrew dot Stubbs at st dot com>
- Date: Tue, 29 May 2001 12:40:21 +0100 (BST)
- Cc: newlib at sources dot redhat dot com
On Tue, 29 May 2001 joerg.preuss@jmpreuss-edv.de wrote:
> Hi!
>
> Is there a chance, to build newlib as a dynamic link library? Our arm-board
> has only 256kb ram. Even if a programm we wrote is really small (just an
> inkrement), the linked code is quite big. Sometimes more than 200kb. We had
> the idea, that a dynamic lib could be loaded into flash-rom, which is much
> bigger.
Are you striping the executable?
My hello world program starts out at 315k (for sh4), but when I strip it
the size drops to 48k.
------------------------------------------------------------------------
| Andrew Stubbs, | E-mail: Andrew.Stubbs@st.com |
| STMicroelectronics Ltd., | or stubbsa@bristol.st.com |
| 1000 Aztec West, | |
| Almondsbury, | Tel: +44 (0)1454 462325 |
| Bristol, BS32 4SQ, U.K. | Fax: +44 (0)1454 617910 |
------------------------------------------------------------------------