1. A memory medium which stores program instructions for configuring multiple targets to execute portions of a graphical program, wherein the targets include an embedded processor and memory, and a programmable hardware element, wherein the program instructions are executable to perform: receiving user input selecting a first portion of the graphical program for execution on the programmable hardware element; and generating first code based on the first portion of the graphical program that is deployable on the programmable hardware element; and generating second code based on a second portion of the graphical program that is deployable on the embedded processor.