摘要 |
<p>The invention relates to a translation method ("translation-execution") of foreign binary code not adapted to a host computer. The translation-execution consists in alternately running a translator program (112) to translate a foreign code block of the program into a host code block and running (104) the just translated host block thereafter. The translator will always suspend (106) translation upon reaching a computed Control Transfer Instruction (CTI) as, at translation time, the corresponding computed label cannot be known. The newly translated host block is then run, whereby the host code, corresponding to the foreign code that would be up to then executed, is run. The label of the foreign computed CTI is then effectively computed and can be found in memory. The translator can then resume the translation of the foreign code starting from the computed label. <IMAGE></p> |