1. In a graphical modeling environment, a method for optimizing an intermediate representation, comprising the steps of: (a) providing a first intermediate representation derived from at least one implementation in at least one source language of a system model in the graphical modeling environment; (b) applying at least one optimization technique to the first intermediate representation; and (c) generating a second intermediate representation responsive to the applying of the at least one optimization technique to the first intermediate representation.