caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Stefano Zacchiroli <zack@upsilon.cc>
To: caml-list@inria.fr
Subject: Re: [Caml-list] Embedding the ocaml runtime in a shared library on amd64/x86_64
Date: Wed, 2 Dec 2009 23:37:51 +0100	[thread overview]
Message-ID: <20091202223751.GA20553@usha.takhisis.invalid> (raw)
In-Reply-To: <20091202165116.GA7786@annexia.org>

On Wed, Dec 02, 2009 at 04:51:16PM +0000, Richard Jones wrote:
> On Wed, Dec 02, 2009 at 01:33:11PM +0100, Joost Yervante Damad wrote:
> > I think compiling with -fPIC by default on the amd64/x86_64 arch
> > would be a good start to making it more usable for embedding.
> I think this is also a very good idea.

Seconded.

> We went through this already with libcamlrun.a:
> http://caml.inria.fr/mantis/view.php?id=3866

Just to clarify a bit more for who did not follow that bug: what we did
there was not precisely what Joost asked for (i.e. build libasmrun.a
with -fPIC). Rather the patch offers two different libraries:
libcamlrun.a (no -fPIC) and libcamlrun_shared.so (-fPIC). The reason was
a performance penalty in using the -fPIC version.

Both in Debian and Fedora package you now have both libraries.

That said, I share Rich's suggestion: please file a bug (with patch
would be even better :)), that enable building 2 different versions of
libcamlrun, one built with -fPIC, the other as it is now.

Cheers.

-- 
Stefano Zacchiroli -o- PhD in Computer Science \ PostDoc @ Univ. Paris 7
zack@{upsilon.cc,pps.jussieu.fr,debian.org} -<>- http://upsilon.cc/zack/
Dietro un grande uomo c'è ..|  .  |. Et ne m'en veux pas si je te tutoie
sempre uno zaino ...........| ..: |.... Je dis tu à tous ceux que j'aime


  reply	other threads:[~2009-12-02 22:37 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-02 12:33 Joost Yervante Damad
2009-12-02 16:51 ` [Caml-list] " Richard Jones
2009-12-02 22:37   ` Stefano Zacchiroli [this message]
2009-12-03 10:56     ` Joost Yervante Damad
2009-12-03 11:53       ` Alain Frisch
2009-12-03 12:47       ` Stefano Zacchiroli
2010-01-05 12:52       ` [Caml-list] Embedding the ocaml runtime in a shared library on amd64/x86_64 [update] Joost Yervante Damad

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20091202223751.GA20553@usha.takhisis.invalid \
    --to=zack@upsilon.cc \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).