1. A non-transitory computer-readable medium comprising program instructions, the program instructions when executed by a processing element operable to: receive a graphical model having executable semantics, the graphical model including a plurality of graphical objects; generate standalone code for the graphical model, the generated standalone code including a portion that corresponds to a given graphical object of the graphical model, and lacking a callable interface for the portion that corresponds to the given graphical object of the graphical model; identify, by a processor, the portion of the generated code that corresponds to the given graphical object of the graphical model; construct an interface to the portion of the generated standalone code that corresponds to the given graphical object of the graphical model; and execute the graphical model in an interpreted mode such that: execution of the given graphical object of the graphical model is bypassed, and the portion of the generated code that corresponds to the given graphical object of the graphical model is executed in place of the given graphical object of the graphical model utilizing the constructed interface.