1. A non-transitory computer-readable medium that stores computer-executable instructions, comprising: one or more instructions to generate code with a technical computing environment (TCE) based on a model and information associated with a target processor; one or more instructions to register an algorithm with the TCE; one or more instructions to automatically set optimization parameters, applied during generation of the code, based on the algorithm; one or more instructions to execute the generated code; one or more instructions to receive feedback based on execution of the generated code; one or more instructions to use the feedback to automatically update the optimization parameters and to automatically regenerate the code with the TCE until the code reaches a particular state for the target processor; and one or more instructions to store the code after the code reaches the particular state.