Yahoo Groups archive

Lpc2000

Index last updated: 2026-04-28 23:31 UTC

Message

Re: [lpc2000] tiny libc?

2004-08-21 by Shannon Holland

On Saturday, August 21, 2004, at 07:42 AM, Pablo Bleyer Kocik wrote:

>   Yes, there is a bug in GCC 3.4.1 regarding THUMB mode. This has been
> fixed in CVS. I still have been unable to allocate time to release an
> interim version with the proper bug fixes. Most probably it will have 
> to
> wait to 3.4.2 ;^/

Cool - glad to know it's fixed! If I get the latest gcc sources will it 
be something I can easily build and test out or will that likely get me 
lots of 3.5 changes as well?

>
>> I've found many very small libc's, but they are typically an explicit
>> port to a processor (AVR, MSP430, etc). That could certainly be a
>> starting point, but I'd rather avoid that much work if I don't need to
>> do it!
>
>   Perhaps uClibc (http://www.uclibc.org/) may fit your needs. It is at
> least more easier to trim than newlib. There is also uC-libc, take a 
> look
> at http://www.ucdot.org/article.pl?sid=02/08/21/1124218
>

I've been using uClibc at work for a client who is building an embedded 
linux system (just built it as part of buildroot, which is an awesome 
package!). That was my first plan of attack, although when poking 
around the web I found various references saying a non-linux build 
wasn't supported - not sure how true that really is. I had started 
trying to build a uclibc toolchain but keep hitting build problems - 
for some reason gcc really hates to compile for me! As you say, uClibc 
is very configurable so it's probably worth spending time on.

As an interim hack, I just tried linking without libc to see how many 
errors I got - turns out it's very little. So I think I will just plug 
in my own functions for now, then once 3.4.2 is out I can go back to 
getting a happy uClibc.

Thanks!

Shannon

Attachments

Move to quarantaine

This moves the raw source file on disk only. The archive index is not changed automatically, so you still need to run a manual refresh afterward.