|
XTSim engine is the core technology of Xiptech simulator. It's a just in time compile engine to translate target machine's code to host machine's code.
The main function of a simulator is to execute instructions of target machine. We can use a interpreter to do this job. But this mathod cannot provide very high speed. It's hard to reach 10mips on a PC. User have to wait a few minutes to let linux or MS Windows boot. User cannot run GUI or games smoothly on the simulator.
The solution is use JIT technology. As we all know, Java VMs have used it for a long time. But using it to simulate machines like StrongArm and tx3911 is much more difficult. We must handle MMU, delayslot, self modify code, register window, etc. But we have solved all of these. Now we can simulate MIPS on x86, also we can do it on Arm. Target and host CPU can be any types.
Using XTSim engine, Xiptech simulators have world leading speed. We can get 50 mips when simulating a MIPSR3000 on a P3 650.
|