An embodiment of the invention includes a method of forming a
control-dataflow graph that includes separating a control flow graph into
two or more basic blocks, and converting said two or more basic blocks
into code blocks, where the code blocks are formed into the
control-dataflow graph. Another embodiment of the invention includes a
method of forming a control-dataflow graph that includes separating a
control flow graph into two or more basic blocks, forming a lode node in
at least one of said basic blocks, forming a store node in at least one
of said code blocks, inserting a delay node in at least one of said code
blocks, segregating external hardware logic modules from said control
flow graph, and converting said two or more basic blocks into code
blocks, wherein the code blocks are formed into the control-dataflow
graph.