1. In an electronic device, a method for determining a memory mapping for executable instructions generated from a graphical model to execute on a computational hardware device having one or more processors, the method comprising: receiving program information comprising a description of one or more program segments, each program segment comprising one of a code segment and a data segment of executable instructions generated from a graphical model; receiving memory information comprising a description of one or more memory elements of the computational hardware device; and using the program information and the memory information to determine a memory mapping that provides for executing the executable instructions in a desired manner on the computational hardware device, the memory mapping identifying placement of the one or more program segments to portions of the one or more memory elements.