From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27049 invoked by alias); 13 Feb 2015 23:47:43 -0000 Mailing-List: contact libffi-discuss-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libffi-discuss-owner@sourceware.org Received: (qmail 27040 invoked by uid 89); 13 Feb 2015 23:47:42 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=2.4 required=5.0 tests=BAYES_00,FREEMAIL_FROM,KAM_FROM_URIBL_PCCC,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=no version=3.3.2 X-HELO: mail-ie0-f169.google.com Received: from mail-ie0-f169.google.com (HELO mail-ie0-f169.google.com) (209.85.223.169) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES128-GCM-SHA256 encrypted) ESMTPS; Fri, 13 Feb 2015 23:47:41 +0000 Received: by iecvy18 with SMTP id vy18so23220437iec.6 for ; Fri, 13 Feb 2015 15:47:39 -0800 (PST) X-Received: by 10.42.78.137 with SMTP id n9mr17840881ick.53.1423871259486; Fri, 13 Feb 2015 15:47:39 -0800 (PST) Received: from [192.168.0.101] (173-19-202-206.client.mchsi.com. [173.19.202.206]) by mx.google.com with ESMTPSA id n4sm4112209igr.15.2015.02.13.15.47.37 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Feb 2015 15:47:38 -0800 (PST) Message-ID: <54DE8D61.803@qsl.net> Date: Fri, 13 Feb 2015 23:47:00 -0000 From: "John E. Malmberg" User-Agent: Mozilla/5.0 (Windows NT 6.3; WOW64; rv:31.0) Gecko/20100101 Thunderbird/31.4.0 MIME-Version: 1.0 To: Richard Henderson , libffi-discuss@sourceware.org Subject: Re: Trying to port libffi to OpenVMS. References: <54DE0378.8040609@qsl.net> <54DE0D25.8020300@redhat.com> In-Reply-To: <54DE0D25.8020300@redhat.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes X-SW-Source: 2015/txt/msg00037.txt.bz2 On 2/13/2015 8:41 AM, Richard Henderson wrote: > On 02/13/2015 06:00 AM, John E. Malmberg wrote: >> I was able to apply Philippe Vouters patches for Libffi 3.0.9 to libffi 3.1 and >> get the code building. I was unable to get the tests to run under GNV though. > > I've never seen those patches but... Not sure if I got them via E-mail from someone else, or from his site. His site is not responding at this time. The readme says that they include HP-UX/ia64 and VMS/Alpha and VMS/ia64. What I have appears to be bunch of concatenated unified diffs. I can gzip it and forward it to anyone that is interested, uncompressed it is 126 KB. >> I am now trying to build master from a git checkout, and have gotten lost with >> the changes to src/alpha/ffi.c since then, so I am looking for some guidance on >> how to get libffi from master building. > > ... I know that the ABI for vms is significantly different from unix. > I'd be surprised if the patches were small. I think VMS and Tru64 share a calling standard on Alpha, but I am not sure. VMS on Itanium uses ELF binaries and calling standard with a few extensions to ELF. In any case, on VMS, the "int lib$callg(void **args, int (*func)())" hides all that though. > I don't know that there's a wiki, per se... That is what the text at that web site says. It actually implies that it is posted on a WIKI. What I should have done is read the libffi online manual instead of trying just to understand what Philippe did. The use of the lib$callg() routine means I should not need any assembly language code at all. Probably almost the same source for all three current VMS harware platforms. Thanks for the reply. Regards, -John