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.0 required=5.0 tests=none autolearn=disabled version=3.1.3 X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from discorde.inria.fr (discorde.inria.fr [192.93.2.38]) by yquem.inria.fr (Postfix) with ESMTP id 4A62BBC68 for ; Sun, 12 Nov 2006 15:56:07 +0100 (CET) Received: from smtp1-g19.free.fr (smtp1-g19.free.fr [212.27.42.27]) by discorde.inria.fr (8.13.6/8.13.6) with ESMTP id kACEu6kw008057 for ; Sun, 12 Nov 2006 15:56:07 +0100 Received: from [192.168.0.1] (rke75-3-82-229-183-156.fbx.proxad.net [82.229.183.156]) by smtp1-g19.free.fr (Postfix) with ESMTP id B9563B31E; Sun, 12 Nov 2006 15:56:06 +0100 (CET) Message-ID: <45573606.10801@inria.fr> Date: Sun, 12 Nov 2006 15:56:06 +0100 From: Alain Frisch User-Agent: Thunderbird 1.5.0.5 (X11/20060812) MIME-Version: 1.0 To: Pierre-Etienne Meunier Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] Bytecode object files structure References: <200611121542.30370.pierreetienne.meunier@ens-lyon.fr> In-Reply-To: <200611121542.30370.pierreetienne.meunier@ens-lyon.fr> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Miltered: at discorde with ID 45573606.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; frisch:01 frisch:01 bytecode:01 ocaml:01 cmo:01 cmo:01 ocaml:01 bytecode:01 vaguely:01 compilation:01 bytecomp:01 mli:01 wrote:01 caml-list:01 alain:01 Pierre-Etienne Meunier wrote: > According to the source of Ocaml, there's something called the > "cmo_magic_number", systematically written at the beginning of all .cmo > files. Does it have a real function for executing the programs, or is it just > a way to make sure the file contains ocaml bytecode ? It is just a way to make sure that the file contains ocaml bytecode with the expected version. > After that, I can't understand anything : there vaguely seems to be some > information related to linking or so... What is the precise structure of this > part ? Is there some kind of a bytecode assembler ? The structure is a compilation unit descriptor, described in bytecomp/cmo_format.mli. -- Alain