EmbDev.net

Forum: ARM programming with GCC/GNU tools uClibc-0.9.19


von Daniel (Guest)


Rate this post
useful
not useful
Just a silly question:

Does Winarm support uClibc-0.9.19? I need the arm-uclibc-gcc compiler.

Thanks,

Daniel.

von Martin Thomas (Guest)


Rate this post
useful
not useful
Daniel wrote:
> Does Winarm support uClibc-0.9.19? I need the arm-uclibc-gcc compiler.

(Again:) WinARM is just a collection. The libc in this collection is the
newlib. It may be possible to compile the uClibc with the arm-elf-gcc
that comes with WinARM (or Yagarto or...) and use it as libc instead of
the newlib. But a better choice would be to build your toolchain "from
scratch". IRC there is rather detailled information on how to build a
toolchain with uClibc on their web-site. Since I have never tested
uClibc myself I can not give further information at the moment, maybe
someone else can jump in here.

Keep in mind that the uClibc is licensed under the LGPL which may be a
restriction.

Just curious: which functions do you miss in the newlib?

Martin Thomas

von Daniel (Guest)


Rate this post
useful
not useful
Martin Thomas wrote:
> Daniel wrote:
>> Does Winarm support uClibc-0.9.19? I need the arm-uclibc-gcc compiler.
>
> (Again:) WinARM is just a collection. The libc in this collection is the
> newlib. It may be possible to compile the uClibc with the arm-elf-gcc
> that comes with WinARM (or Yagarto or...) and use it as libc instead of
> the newlib. But a better choice would be to build your toolchain "from
> scratch". IRC there is rather detailled information on how to build a
> toolchain with uClibc on their web-site. Since I have never tested
> uClibc myself I can not give further information at the moment, maybe
> someone else can jump in here.
>
> Keep in mind that the uClibc is licensed under the LGPL which may be a
> restriction.
>
> Just curious: which functions do you miss in the newlib?
>
> Martin Thomas


Thanks Martin for your reply.

> Just curious: which functions do you miss in the newlib?

I really don't know. All my application is linked with uClibc-0.9.19,
one of the few libs working with my target. I'm working on a project
under uClinux and I thought that building the application from Windows
could be nice for those unfamiliar with Linux (thinking in a GPL
project). For Windows I wanted to compile just my application, not the
kernel image, so I don't need to adapt the whole toolchain.
arm-uclibc-gcc is the only executable to build for Windows but I don't
know where to start. I'm currently downloading source files.

Thanks.

von Spencer O. (ntfreak)


Rate this post
useful
not useful
The gnu toolchain from Keil uses uclibc instead of newlib, so have a
look there as a start.

I have used uclibc in the past as the footprint is slightly smaller than
newlib (when using printf etc). Newlib can be tweaked to have a similar
foorprint however.

Be careful of the license with uclibc as it is LGPL not GPL as newlib.

Regards
Spen

Please log in before posting. Registration is free and takes only a minute.
Existing account
Do you have a Google/GoogleMail account? No registration required!
Log in with Google account
No account? Register here.