5

I am using a custom user space environment that has barely no OS support: only one char device, mass storage interface and a single network socket.

To provide C programming to this platform, I need a libc. Is there any libc project that is configurable enough so that I can map low-level IO to the small API I have access to ?

AFAIK glibc and uclibc are expecting linux syscalls, so I can't use them (without trying to emulate linux syscalls, which is something I prefer to avoid).

Laurent G
  • 2,994
  • 1
  • 18
  • 10

2 Answers2

4

There are several different libc's to choose from, but all will need some work to integrate into your system.

  • uClibc has a list of other C libraries. The most interesting ones on that list are probably
  • FreeDOS has a LIBC
  • EGLIBC might be simpler to port than the "standard" glibc.
gnud
  • 77,584
  • 5
  • 64
  • 78
  • Thanks. Doing the integration work is not an issue. I simply want to avoid rewriting another printf, fread, etc... whereas some cool project already did it for me. Any insights about differences between newlib and libc (features, stability) ? – Laurent G Feb 24 '11 at 08:41
1

newlib might serve this purpose.

nos
  • 223,662
  • 58
  • 417
  • 506
  • Thanks. Newlib, looks a good candidate. Hopefully, someone here may know some other project I can compare to. – Laurent G Feb 24 '11 at 08:38