caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* Native dynlink on 3.11: a request for packagers
@ 2008-11-21 19:29 Dario Teixeira
  2008-11-21 23:18 ` [Caml-list] " Richard Jones
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Dario Teixeira @ 2008-11-21 19:29 UTC (permalink / raw)
  To: caml-list

Hi,

As you are probably aware, the upcoming 3.11 release includes
Alain Frisch's native dynlink patches.  AFAIK, you cannot
directly dynlink a cmxa or cmx file like you would do in
bytecode with cma or cmo files.  Beforehand, a native code
binary must be made into a plugin via ocamlopt's -shared
option.  The suggested convention [1] is to give these
plugins a cmxs extension:

ocamlopt -shared -linkall -o foobar.cmxs foobar.cmxa

These native code plugins are a prerequisite if one intends
to run Ocsigen in native mode.  Therefore, the life of Ocsigen
users would be greatly simplified if library writers and
packagers (GODI, Debian, Fedora, etc) would add this little
extra step of generating cmxs for each cmxa.  This request
only makes sense for 3.11, of course.

Complementary, META files should also include extra directives
for plugins.  For example:

archive(byte) = "foobar.cma"
archive(native) = "foobar.cmxa"
archive(plugin,byte) = "foobar.cma"
archive(plugin,native) = "foobar.cmxs"

This request can of course become an OSR.  My question is if the
herein contained instructions will still be valid verbatim for
3.11 final.  Will they?  Also, please check the Ocsigen Wiki for
more info on this subject [2].

Best regards,
Dario Teixeira

[1] http://alain.frisch.fr/natdynlink.html
[2] http://www.ocsigen.org/trac/wiki/NativeCodeVersion






^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2008-11-26  8:16 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-11-21 19:29 Native dynlink on 3.11: a request for packagers Dario Teixeira
2008-11-21 23:18 ` [Caml-list] " Richard Jones
2008-11-21 23:45   ` Dario Teixeira
2008-11-22  1:19     ` Jon Harrop
2008-11-22  7:40       ` David Allsopp
2008-11-22 15:33     ` Gerd Stolpmann
2008-11-22 19:02       ` Dario Teixeira
2008-11-22 11:22 ` Stefano Zacchiroli
2008-11-22 15:00 ` Daniel Bünzli
2008-11-22 18:40   ` Alain Frisch
2008-11-25 19:36 ` Daniel Bünzli
2008-11-25 20:48   ` Dario Teixeira
2008-11-26  8:16   ` Stefano Zacchiroli

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).