Need an OS/Arch free subset of libc.

Ondřej Bílka neleai@seznam.cz
Fri May 16 20:33:00 GMT 2014


On Fri, May 16, 2014 at 03:52:22PM -0400, Ken Mandelberg wrote:
> I have need to compile C code for the Motorola 68000 (not 68020) to
> run on a 68000 simulator. I already have a cross gcc compiler that
> works, but I'm missing the typical libc utility routines (sprintf,
> strcmp, memcpy, etc). In other words I'm missing the routines that
> are OS independent.
> 
> I could use a standard Linux glibc or libc and just not use any of
> the OS related routines (read, brk, etc), but I haven't found one
> built for the 68000 (again, not the 68020), and the 68000 does not
> appear to be a supported target of the current glibc source.
> 
> Since I have a working gcc cross compiler, and the routines I want
> are presumably architecture neutral I could just compile the subset
> if I could deal with the building logistics.
> 
> So any of these would help me:
> 
> 1) A built 68000 glibc/libc (elf format binaries)
> 2) A suggestion on how to configure  the glibc build system to get
> 68000 binaries
> 3) A different mini libc compatible source library with just the
> OS/Arch free routines.
Did you tried gnulib? See:

http://www.gnu.org/software/gnulib/



More information about the Libc-help mailing list