Version française
Home     About     Download     Resources     Contact us    
Browse thread
Native executable symtable
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: malc <malc@p...>
Subject: Re: [Caml-list] Native executable symtable
On Sat, 20 Nov 2004, Alex Baretta wrote:

>>> What does this patch do? I clicked on the link but could not make any 
>>> sense out the page you referenced.
>>> 
>> 
>> I don't know how to put it more bluntly than that (already on the page):
>> 
>> <quote>
>> What is it?
>> A patch, against OCaml 3.07, making it possible to: create, link against 
>> and dynamically load shared objects on i386 ELF and Win32 platforms.
>> </quote>
>
> I read this, but I don't see how this differs from the behavior of vanilla 
> Ocaml. I commonly use shared-object libraries in my code, and the Ocaml 
> compiler can generate DLLs out of libraries for use within C code. The 
> problem addressed by ASMDynlink dynlinking Ocaml compiled code within a 
> running native code application. What has Vitaly's patch to do with this?

Keyword here is "for use within C code", this patch is "for use within
OCaml code", also adressing name mangling, shared GC and runtime. 
Additionally it Natdynlink module is introduced (Natdynlnk mimics the
behaviour of Dynlink, but works with natively compiled OCaml shared
object). A little bit of research on the page would have (like, for
instance, getting the examples provided or reading README) would have
given you just as much information.

>
> I also don't understand your sarcasm.

Sarcasm spurs from the fact that first version of this patch was
introduced in 2001 and developed till 2003. I had hoped that this will
result in some reaction, if not from Inria developers then from OCaml
users, alas this was not the case. Nothing w.r.t. native shared object
and/or dynamic linking of native code has changed since then. I myself
asked and waited for something akin to this for a bit, then decided to
went ahead and did it on my own, big mistake, all signs are there that
people do not need this functionality bad enough to do anything.
So be it.

-- 
mailto:malc@pulsesoft.com