Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 08 Aug 2008 10:30:35 +0200
From:      Andrea Venturoli <ml@netfence.it>
To:        Chuck Swiger <cswiger@mac.com>
Cc:        FreeBSD Questions <freebsd-questions@freebsd.org>
Subject:   Re: Mixing 64 and 32-bit code
Message-ID:  <489C042B.4070703@netfence.it>
In-Reply-To: <A4B69B80-CE6A-4511-920B-8D50D9917195@mac.com>
References:  <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> <489B3909.6080702@FreeBSD.org> <489B4D7F.1040406@netfence.it> <A4B69B80-CE6A-4511-920B-8D50D9917195@mac.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Chuck Swiger ha scritto:

> The simplest answer is that it won't work-- the syscall interface and 
> function argument/return-value sizes are going to be different between 
> 32-bit and 64-bit code.

I was quite sure of this :-(



> [1]: You can look up how thunking between Win16 and Win32 code worked here:
> 
>   http://en.wikipedia.org/wiki/Thunk#Thunk_as_compatibility_mapping
 >
 > ...but the same idea could be applied to generic 32-bit & 64-bit ELF 
code.

This is just what I was wondering about, whether it extisted or not.




> (It's really an evil thing to try to do, however.)

Yes, I know.
In my case, unfortunately, all I have is a 32-bit object, as closed 
source as it could be and I don't think we have any hope in getting the 
vendor to provide a 64-bit version (although they do for Linux).



  bye & Thanks
	av.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?489C042B.4070703>