Hello

I have many different processors (they not the same) for example first has a 3 stage pipe: EXE->MEM->EXE and the second has a 3 stage pipe: MEM->EXE->EXE.I want to decide for the operations in which CPU it has to be computed for example *(R1+R2)+R3 has to be computed in first and the ( (*R1) + R2) +R3 has to be computed in second one I use DAGs to save the flow graphs. Which algorithm can be use to suite each operation to the suitable CPU[pipeline]?

Thank in advance

So write out some pseudo code for each sequence of operations, and assign MEM/EXE to each step.

Then figure out which pipeline best fits the sequence.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.