Hi Luke,
Take a look at bpfjit in NetBSD. It uses bsd licensed sljit library to generate code for multiple platforms. The library has some slight overhead over hand-written assembly but it gives you a single codebase for all platforms. At the very least, you can borrow some optimisations from my code.
http://cvsweb.netbsd.org/bsdweb.cgi/src/sys/net/bpfjit.c?onl...
PS I can't work on sponsored projects.
Alex