摘要 |
The invention is a method of generating diagnostic data for debugging a parallel program (230), for example a program comprising an instruction stream having multiple threads, that has been compiled S1, S2 from a source (non-parallelised) program (210). A scheduling order S7, S8, S9 for executing instructions within the instruction stream is controlled, in response to one or more rules, so that the order of execution of a sequence of threads follows an order of said source instruction stream. Thus, the diagnostic method generates S6 a debug view of the parallelised program which is the same as, or at least similar to, a debug view which would be provided when debugging the original non-parallelised program, making it easier to debug the parallelised program. A more consistent debug view is provided since the timing behaviour of the different threads can be controlled by the rules. In another embodiment, sequence data, indicative of an order of a source instruction stream, is generated during compilation. |