I'm getting confused about stubs...

Jeremy Bennett jeremy.bennett@embecosm.com
Sat Apr 28 12:19:00 GMT 2012

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.


This should get you started.



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

More information about the Newlib mailing list