1. A computer implemented method for generating embedded code from a graphical model, the method comprising: prompting a user to specify at least one code generation goal from a plurality of code generation goals, the at least one code generation goal being used to generate embedded code from the graphical model in a graphical modeling environment, the at least one code generation goal relating to a characteristic of the code to be generated from the graphical model, the graphical model representing a dynamic system having time-changing behavior modeled with differential, difference, and/or algebraic equations, the graphical model being capable of simulation based on the equations; changing parameters of the graphical model that are inconsistent with the at least one code generation goal; and generating embedded code in accordance with the at least one code generation goal.