This is the mail archive of the newlib@sources.redhat.com mailing list for the newlib project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: dynamic or static linking


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      |
------------------------------------------------------------------------


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]