20. A computer-readable medium comprising instructions, which when executed by a computer system causes the computer system to perform operations for a generating code based on a graphical model, the computer-readable medium comprising: instructions for translating the graphical model into a graphical model code, the graphical model code being compilable into an executable program and including a first graphical model code function, the first graphical model code function being a member of a group of graphical model code functions; instructions for receiving a selection of a first hardware specific library from a plurality of hardware specific libraries, the hardware specific libraries corresponding to one of at least a first target environment and a second target environment, the first hardware specific library corresponding to the first target environment; the hardware specific libraries comprising a plurality of relationships between the group of graphical model code functions and hardware specific functions, the hardware specific functions being compilable into object code for execution in the first target environment, and instructions for performing a lookup of the first graphical model code function in the first hardware specific library; instructions for obtaining a matched hardware specific function based on the lookup, the matched hardware specific function matching at least one property of the graphical model code function and being one of the hardware specific functions from the first hardware specific library; and instructions for modifying the graphical model code based on the matched hardware specific function.
20. A computer-readable medium comprising instructions, which when executed by a computer system causes the computer system to perform operations for a generating code based on a graphical model, the computer-readable medium comprising: instructions for translating the graphical model into a graphical model code, the graphical model code being compilable into an executable program and including a first graphical model code function, the first graphical model code function being a member of a group of graphical model code functions; instructions for receiving a selection of a first hardware specific library from a plurality of hardware specific libraries, the hardware specific libraries corresponding to one of at least a first target environment and a second target environment, the first hardware specific library corresponding to the first target environment; the hardware specific libraries comprising a plurality of relationships between the group of graphical model code functions and hardware specific functions, the hardware specific functions being compilable into object code for execution in the first target environment, and instructions for performing a lookup of the first graphical model code function in the first hardware specific library; instructions for obtaining a matched hardware specific function based on the lookup, the matched hardware specific function matching at least one property of the graphical model code function and being one of the hardware specific functions from the first hardware specific library; and instructions for modifying the graphical model code based on the matched hardware specific function. 34. The computer-readable medium of claim 20 , wherein the hardware specific library is selected from a plurality of hardware specific libraries, where each hardware specific library comprises a plurality of relationships between graphical model code functions and hardware specific functions.