libsew, a library for generating subroutine-threaded code at runtime