Model based source code generator for fast prototyping of simulations and embedded software