This is the mail archive of the newlib@sourceware.org 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]
Other format: [Raw text]

Re: I'm getting confused about stubs...


On Fri, 2012-04-27 at 15:31 +0800, Logic Pein wrote: 
> Hello everyone
>   I am using newlib for the first time.The manual says I should write stubs
> to implement the basic functions.What function should I write?take sbrk for
> example,should I implement
> caddr_t sbrk(int incr)
> { ...}
> or
> caddr_t _sbrk(int incr)
> {...}
> ?I'm using Sourcery G++ for STM32 chips.
> Any help would be greately appreciated.

Hi Logic Pein,

There are various items documenting Newlib on the Internet. I've tried
to bring these together in a simple HOWTO, based on our experience
bringing up Newlib for the OpenRISC architecture.

        http://www.embecosm.com/download/ean9.html

This should get you started.

HTH,


Jeremy

-- 
Tel:      +44 (1590) 610184
Cell:     +44 (7970) 676050
SkypeID: jeremybennett
Email:   jeremy.bennett@embecosm.com
Web:     www.embecosm.com


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