Need an OS/Arch free subset of libc.

Mike Frysinger vapier@gentoo.org
Fri Aug 1 15:07:00 GMT 2014


On Fri 16 May 2014 15:52:22 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.

you might want to look at newlib:
https://sourceware.org/newlib/

it's designed to run on bare metal
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://sourceware.org/pipermail/libc-help/attachments/20140801/c979e69b/attachment.sig>


More information about the Libc-help mailing list