Dynamic Translation...

Programming, for all ages and all languages.
Post Reply
earlz
Member
Member
Posts: 1546
Joined: Thu Jul 07, 2005 11:00 pm
Contact:

Dynamic Translation...

Post by earlz »

Ok, I have googled and wiki'd and the only thing I have been able to find to help me understand Dynamic Translation is QEMU docs...

Does anyone here know about it and care to explain, or know of some page of some sort that gives more in-depth information. I am considering implementing this, so I really need a lot of information about it before I try such a daring thing...

Namely, what I am wanting to know is
1. How can dynamic translation be fast unless it is multithreaded?
2. Can it be portable among different archs?
3. How do I get started with it?
4. How does caching work with it?

I have a basic understanding of wha tit is, but I don't know how it works..
User avatar
Alboin
Member
Member
Posts: 1466
Joined: Thu Jan 04, 2007 3:29 pm
Location: Noricum and Pannonia

Post by Alboin »

Does this clear anything up?
C8H10N4O2 | #446691 | Trust the nodes.
User avatar
Combuster
Member
Member
Posts: 9301
Joined: Wed Oct 18, 2006 3:45 am
Libera.chat IRC: [com]buster
Location: On the balcony, where I can actually keep 1½m distance
Contact:

Post by Combuster »

I guess you tried the wrong keyword:
http://en.wikipedia.org/wiki/Dynamic_recompilation
"Certainly avoid yourself. He is a newbie and might not realize it. You'll hate his code deeply a few years down the road." - Sortie
[ My OS ] [ VDisk/SFS ]
iammisc
Member
Member
Posts: 269
Joined: Thu Nov 09, 2006 6:23 pm

Post by iammisc »

dynamic translation is fast because most of the time the same code is called over and over(the timer isr comes to mind). QEMU simply stores the compiled pieces after it has been translated and every time that that piece of code is called after, the machine code version is used which is faster.
Post Reply