Code generation for multiplying physicals and reals