From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id XAA19084; Fri, 31 Aug 2001 23:51:42 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id XAA18959 for ; Fri, 31 Aug 2001 23:51:41 +0200 (MET DST) Received: from ligarius-fe0.ultra.net (ligarius-fe0.ultra.net [146.115.8.189]) by nez-perce.inria.fr (8.11.1/8.10.0) with ESMTP id f7VLpe502159 for ; Fri, 31 Aug 2001 23:51:41 +0200 (MET DST) Received: from vaiobambino (d104.dial-2.cmb.ma.ultra.net [209.6.65.104]) by ligarius-fe0.ultra.net (8.8.8/ult/n26500/mtc.v2) with SMTP id RAA23596 for ; Fri, 31 Aug 2001 17:51:34 -0400 (EDT) From: "Jeff Henrikson" To: Subject: [Caml-list] dlopen win32 port Date: Fri, 31 Aug 2001 18:00:01 -0400 Message-ID: <000401c13268$48473ba0$0b01a8c0@mit.edu> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook 8.5, Build 4.71.2173.0 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2615.200 Importance: Normal Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk Hi caml-list, I made the "dlopen" ocaml library compile under win32. I don't have any idea how to integrate changes into the autotools scripts, or if it is worth it to do so. Opinions? Win32 has functions that correspond nearly one to one with dlopen dlsym and dlclose. The only compatability issue I can think of are windows' fairly uniform use of stdcall for DLL functions, and the corresponding name mangling of foo(int x, int y) to _foo@4. It seems like there should be some wrapping around this to make it disappear so that equal C files link the same on both platforms. Would need to have a switch to turn it off for dlls that break the convention. Haven't done that yet. I have been trying to get a Mac port of this, but I am too much of newbie at MPW right now. But I from what I've read I think think the CFM model for dynamic linking is a bit more exotic. Does anybody have a bulletproof way to unzip source code on Mac? I used the obvious stuffit expander to unsit the ocaml source, and after various control panel tweaking (Stuffit by default thinks Makefile.Mac is a picture for some reason) I still get CRLF problems with :tools:make-opcodes.Mac. There are at least two other build problems that I have used duct tape to fix. (I'm using the 3.02 tarball right now, the 3.01 mac makefiles had more errors) Is it me or does the DoMake script have to start from scratch every time you make it? > Xavier Leroy wrote on 8/24: >"dynamic_loading" branch on the OCaml development sources >(camlcvs.inria.fr). I'll post more information about it once I'm >happy with the result, to get some feedback on the design. I checked out these sources and did some superficial diffing of it, and it wasn't obvious to me which the salient changes were. I think I was diffing source that was too old though (3.01). A big mess. Is this code for dynamic linking FFI code like DlOpen, or for the general problem of incorporating typing info and etc from one Caml module into another at runtime? Jeff Henrikson ------------------- Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr