Code And Circuit Generation For Efficient Projection Computations On Embedded Platforms