From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail2-relais-roc.national.inria.fr (mail2-relais-roc.national.inria.fr [192.134.164.83]) by yquem.inria.fr (Postfix) with ESMTP id 44817BBAF for ; Wed, 2 Dec 2009 23:37:46 +0100 (CET) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsUDAJ56FktDz4HegWdsb2JhbACcIwEBFiSIWLJEhDEEgWo X-IronPort-AV: E=Sophos;i="4.47,331,1257116400"; d="scan'208";a="37872357" Received: from fettunta.fettunta.org ([67.207.129.222]) by mail2-smtp-roc.national.inria.fr with ESMTP; 02 Dec 2009 23:37:45 +0100 Received: from usha.takhisis.invalid (unknown [10.17.0.10]) by fettunta.fettunta.org (Postfix) with ESMTPS id 4CC8B184DE for ; Wed, 2 Dec 2009 22:37:44 +0000 (UTC) Received: by usha.takhisis.invalid (Postfix, from userid 1000) id 36D586EEE; Wed, 2 Dec 2009 23:37:51 +0100 (CET) Date: Wed, 2 Dec 2009 23:37:51 +0100 From: Stefano Zacchiroli To: caml-list@inria.fr Subject: Re: [Caml-list] Embedding the ocaml runtime in a shared library on amd64/x86_64 Message-ID: <20091202223751.GA20553@usha.takhisis.invalid> Mail-Followup-To: caml-list@inria.fr References: <200912021333.11599.joost@damad.be> <20091202165116.GA7786@annexia.org> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20091202165116.GA7786@annexia.org> User-Agent: Mutt/1.5.20 (2009-06-14) X-Spam: no; 0.00; zacchiroli:01 zack:01 ocaml:01 runtime:01 0100,:01 -fpic:01 libcamlrun:01 bug:01 libasmrun:01 -fpic:01 libcamlrun:01 bug:01 cheers:01 zacchiroli:01 postdoc:01 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