1. In an electronic device, a method of pooling parameters in a graphical modeling environment, the method comprising: generating a first parameter and a second parameter for a graphical model, where the first parameter is different from the second parameter, the first parameter and the second parameter are generated based on a user- specified expression, the first parameter has a first numerical value that is used by at least a first block of the graphical model during execution of the graphical model, the second parameter has a second numerical value that is used by at least a second block of the graphical model during execution of the graphical model, and the generating is performed by the electronic device; providing the first parameter and the second parameter to a data-matching function, the providing performed by the electronic device; determining, using the data-matching function, that the first numerical value of the first parameter is equivalent to the second numerical value of the second parameter during execution of the graphical model; and pooling the first parameter and the second parameter into a pooled run-time parameter based on the determining, where the pooling further comprises: creating, while compiling the graphical model, one memory location for storing both the first parameter and the second parameter using a single value representing the pooled run-time parameter, storing the single value representing the pooled run-time parameter in the one memory location, and storing an indication of the first parameter and the second parameter being represented by the single value, and wherein the first parameter has a first data type that differs from a second data type of the second parameter.