From owner-freebsd-questions@FreeBSD.ORG Fri Aug 8 08:30:47 2008 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 8CE64106566C for ; Fri, 8 Aug 2008 08:30:47 +0000 (UTC) (envelope-from ml@netfence.it) Received: from parrot.aev.net (parrot.aev.net [212.31.247.179]) by mx1.freebsd.org (Postfix) with ESMTP id E01448FC18 for ; Fri, 8 Aug 2008 08:30:46 +0000 (UTC) (envelope-from ml@netfence.it) Received: from soth.ventu (adsl-ull-34-20.51-151.net24.it [151.51.20.34]) (authenticated bits=128) by parrot.aev.net (8.14.2/8.14.2) with ESMTP id m788Uamo085339 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=FAIL) for ; Fri, 8 Aug 2008 10:30:42 +0200 (CEST) (envelope-from ml@netfence.it) Received: from alamar.ventu (alamar.ventu [10.1.2.18]) by soth.ventu (8.14.2/8.14.2) with ESMTP id m788Vdgd014786; Fri, 8 Aug 2008 10:31:40 +0200 (CEST) (envelope-from ml@netfence.it) Message-ID: <489C042B.4070703@netfence.it> Date: Fri, 08 Aug 2008 10:30:35 +0200 From: Andrea Venturoli User-Agent: Thunderbird 2.0.0.16 (X11/20080727) MIME-Version: 1.0 To: Chuck Swiger References: <26ddd1750808071055i2b9976b3i4f347407d94a0813@mail.gmail.com> <489B3909.6080702@FreeBSD.org> <489B4D7F.1040406@netfence.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.64 on 212.31.247.179 Cc: FreeBSD Questions Subject: Re: Mixing 64 and 32-bit code X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 08 Aug 2008 08:30:47 -0000 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.