From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.1.3 (2006-06-01) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.2 required=5.0 tests=AWL autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from mail3-relais-sop.national.inria.fr (mail3-relais-sop.national.inria.fr [192.134.164.104]) by yquem.inria.fr (Postfix) with ESMTP id 19068BB84 for ; Tue, 23 Sep 2008 12:25:22 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AtIDAFJh2EjAXQIniGdsb2JhbACSYT4BAQEVIpwgh0oBAoNf X-IronPort-AV: E=Sophos;i="4.32,451,1217800800"; d="scan'208";a="17254397" Received: from concorde.inria.fr ([192.93.2.39]) by mail3-smtp-sop.national.inria.fr with ESMTP; 23 Sep 2008 12:25:03 +0200 Received: from mail4-relais-sop.national.inria.fr (mail4-relais-sop.national.inria.fr [192.134.164.105]) by concorde.inria.fr (8.13.6/8.13.6) with ESMTP id m8NAP2BE015787 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=OK) for ; Tue, 23 Sep 2008 12:25:03 +0200 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AjACAK9g2EjRVYC5lGdsb2JhbACSYT4BAQEBCQkMBxEDnByHSgECg18 X-IronPort-AV: E=Sophos;i="4.32,451,1217800800"; d="scan'208";a="29489866" Received: from fk-out-0910.google.com ([209.85.128.185]) by mail4-smtp-sop.national.inria.fr with ESMTP; 23 Sep 2008 12:25:02 +0200 Received: by fk-out-0910.google.com with SMTP id e30so2037814fke.9 for ; Tue, 23 Sep 2008 03:25:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:from:to :in-reply-to:content-type:content-transfer-encoding:mime-version :subject:date:references:x-mailer:sender; bh=Wqpd4ZPgYhxzTYBntZWX9UMhdOLm8UkQ1MVYPHOAvcg=; b=xxi4rVPWEsoNjRIVULl9KAhp7TKAk+SxYjpwDgJCFlt6Rz8y1kAMs4DzbtoFJq1Soo 58kxUd/v3L52QZgt0Yqv5WrqKK8SBzyXNV+DWO2aaC6ZwXsAL+uUleSdCQde3me8EbN+ HX1B/P4hIpU2uw4mx2dYmTNtZ+uKkZepaifD0= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:from:to:in-reply-to:content-type :content-transfer-encoding:mime-version:subject:date:references :x-mailer:sender; b=CmKEa0M+q/kmjKSUDCikM6FN8jId0I+FLkGnHBw9gWd0lxEgk/fxh0cavMgX4JG4ZR AYKIsJcUiuOtJcHWFzldrfEp8jbN4uZUuF/EapP+Fu3FhaiAkeeafNKJsvZmCLG5B72z L3HeS/Xhu4I6RXY/Q8Y1NWQVDHjY2O2lUPUlw= Received: by 10.180.248.10 with SMTP id v10mr3519424bkh.21.1222165501509; Tue, 23 Sep 2008 03:25:01 -0700 (PDT) Received: from ?10.0.1.2? (118-66.2-85.cust.bluewin.ch [85.2.66.118]) by mx.google.com with ESMTPS id 22sm1296619fkr.4.2008.09.23.03.25.00 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 23 Sep 2008 03:25:00 -0700 (PDT) Message-Id: From: =?ISO-8859-1?Q?Daniel_B=FCnzli?= To: OCaml Mailing List In-Reply-To: <48D8B266.4000906@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed; delsp=yes Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Apple Message framework v926) Subject: Re: [Caml-list] What's the purpose of the static library? Date: Tue, 23 Sep 2008 12:24:45 +0200 References: <48D712A8.6090506@sun.com> <48D766CC.5020401@glondu.net> <48D8B266.4000906@sun.com> X-Mailer: Apple Mail (2.926) Sender: =?UTF-8?B?RGFuaWVsIELDvG56bGk=?= X-Miltered: at concorde with ID 48D8C3FE.000 by Joe's j-chkmail (http://j-chkmail . ensmp . fr)! X-Spam: no; 0.00; bunzli:01 buenzli:01 ocaml:01 ocamlc:01 ocamlopt:01 interfacing:01 oreilly-book:01 caml-list:01 caml:02 caml:02 linking:02 oreilly:03 static:03 static:03 library:03 Le 23 sept. 08 =E0 11:09, bill yan a =E9crit : > And we'd like to know more about the OCaml library architectures, =20 > like on what situation dynamic libraries are used, and when static =20 > libraries are used, and so on.. This depends on what _you_ want. The tradeoffs of dynamic vs static =20 linking are mostly as in any other language. > Really appreciate if you could point me to a document that can help =20= > on this topic. o Part III of the manual (especially ocamlc ocamlopt and interfacing =20 with C). http://caml.inria.fr/pub/docs/manual-ocaml/ o Chapter 7 and 12 of the Oreilly book = http://caml.inria.fr/pub/docs/oreilly-book/html/index.html Best, Daniel