4 Nov 2010 12:20
Advise for port to uClinux
Hello there, I seek some advise. I'm trying to port the libgc to uClinux, which is running on my Blackfin. And I almost have it running! A little background: - The GNU compiler for uClinux are using uclibc, which is a subset of glibc. - Blackfins have no MMU, so it doesn't like dynamic linking and it doesn't like fork - It do like POSIX threads though. (And just about everything else that has a POSIX smell) - Generally it looks a feels very much like a regular Linux. (The newest version at least.) So it shouldn't be that difficult to port to I think. Here's what I've done: I've inserted the following in gcconfig.h: -------------------------------------------------------------- # if defined(LINUX) && defined(__bfin__) # define BLACKFIN # define mach_type_known # endif ... # ifdef BLACKFIN # define CPP_WORDSZ 32 # define MACH_TYPE "BLACKFIN" # define ALIGNMENT 4 # ifdef LINUX # define OS_TYPE "LINUX" # define LINUX_STACKBOTTOM(Continue reading)
RSS Feed