1. A method of generating a stream processor, the method comprising: generating a graph of nodes representing the a stream processor to be implemented in hardware; identifying nodes within the graph that affect external flow control of the stream processor; retaining the identified nodes and removing or replacing all nodes which do not affect external flow control of the stream processor in a modified graph; and simulating the modified graph or building a corresponding circuit of the retained nodes.