EmbDev.net

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


Author: Daniel (Guest)
Posted on:

Rate this post
0 useful
not useful
Just a silly question:

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

Thanks,

Daniel.

Author: Martin Thomas (Guest)
Posted on:

Rate this post
0 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

Author: Daniel (Guest)
Posted on:

Rate this post
0 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.

Author: Spencer Oliver (ntfreak)
Posted on:

Rate this post
0 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

Reply

Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [avrasm]AVR assembler code[/avrasm]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]




Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.