[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Calling x86 code from 64-bit code

On Mon, 15 Dec 2003 16:40, Xavier Roche <rocheml@httrack.com> wrote:
> Paul Brook wrote:
> > Not really. It can run both 32-bit and 64-bit processes under the control
> > of a 64-bit kernel. Linking 32-bit libraries into 64-bit apps is for most
> > practical purposes impossible.
> The rellocation process is not done? This is something that could be
> problematic Maybe there's a need for a "dlopen32" ?

Why not just have a proxy program?  You could have a 32bit program which calls 
the DLL and communicates with the 64bit process via shared memory and unix 
domain sockets.  You could also do the same thing for 64bit libraries and 
32bit applications.

For some libraries (libcrypto and zlib) having a 32bit application call 64bit 
code by proxy may even provide a performance boost...

http://www.coker.com.au/selinux/   My NSA Security Enhanced Linux packages
http://www.coker.com.au/bonnie++/  Bonnie++ hard drive benchmark
http://www.coker.com.au/postal/    Postal SMTP/POP benchmark
http://www.coker.com.au/~russell/  My home page

Reply to: