This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Re: I'm getting confused about stubs...
- From: Jeremy Bennett <jeremy dot bennett at embecosm dot com>
- To: newlib at sourceware dot org
- Date: Fri, 27 Apr 2012 09:19:53 +0100
- Subject: Re: I'm getting confused about stubs...
- References: <CAJV+2YJtXZ-=wpM7E_nXq2V0qRfRr4828s+-d+ZoML3uFvR6iw@mail.gmail.com> <CAJV+2YKe5mVBwn8GsBjdQ2xB3mTfb9+NDQe6Jb==TjT=KGetJg@mail.gmail.com>
- Reply-to: jeremy dot bennett at embecosm dot com
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