02-12-2009 дата публикации
Номер: CN0101593125A
Принадлежит:
The invention provides a method for dynamically monitoring an execution flow of a binary translator by using a monitoring thread, which comprises the following steps that: firstly, a new program monitoring thread MT is created for the prior dynamic binary translation system; and secondly, a stub code is inserted in each translation-generating basic block, wherein when executed, each basic block write the entry address thereof into a queue, and queue overflow is prevented by interthread wait; thirdly, the monitoring thread MT is responsible for taking the entry addresses out sequentially, searching for corresponding intermediate instruction basic blocks, updating corresponding data structure according to the termination types of the basic blocks and completing the program monitoring; and finally, referring to part of collected information, the monitoring thread, as a decision maker, completes the optimization of the establishment of a heat path. Compared with the prior program monitoring ...
Подробнее