On Monday 21 May 2007 16:13, H. Peter Anvin wrote: > The easiest way to do that is by having an "RPC stub library" in the > emulated environment which contains nothing but trap instructions -- > like system calls -- that can be intercepted on the other side. At that > point, one has to do translation of data types and pointers (called > "thunking") before invoking the native library. Generating such > "thunks" is usually done automatically, but it is still a fairly major > effort.
But can it be done at the JIT stage?