| View previous topic :: View next topic |
| Author |
Message |
Xfennec
Joined: 06 May 2005 Posts: 2
|
Posted: Thu Jun 23, 2005 7:24 pm Post subject: PSP-toolchain and libc |
|
|
Hi,
When linking with "-lc", it provides me things like "strlen", but "malloc" failed (../../../../../newlib/libc/reent/sbrkr.c:60: undefined reference to « sbrk »).
What part of LIBC is provided by toolchain ? Is there any alternative available ?
If someone started a LIBC complement, I would like to help this project, since I think we now need a full ANSI-C devkit.
Last edited by Xfennec on Thu Jun 23, 2005 7:57 pm; edited 1 time in total |
|
| Back to top |
|
 |
mrbrown
Joined: 17 Jan 2004 Posts: 1536
|
Posted: Thu Jun 23, 2005 7:40 pm Post subject: |
|
|
The full standard C library provided by newlib ships with psptoolchain. There are a few platform-dependent functions that newlib depends on and sbrk() is one of them. This will be fixed in the upcoming release of pspsdk.
Thanks for the offer though. |
|
| Back to top |
|
 |
alonetrio

Joined: 15 May 2005 Posts: 34
|
Posted: Fri Jun 24, 2005 6:52 am Post subject: |
|
|
here is a little malloc replacement :
http://www.wab.com/tools/malloc.c
be sure to rename function like malloc_psp or free_psp to avoid redefinement.
ALoneTrio |
|
| Back to top |
|
 |
|