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=1.1 required=5.0 tests=AWL,SPF_FAIL autolearn=disabled version=3.1.3 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 89D37BBAF for ; Thu, 23 Apr 2009 12:34:40 +0200 (CEST) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AmcCAKvh70kmachml2dsb2JhbACWSAEBAQEBCBUHuTaDdQY X-IronPort-AV: E=Sophos;i="4.40,235,1238968800"; d="scan'208";a="25039559" Received: from mx2.janestcapital.com ([38.105.200.102]) by mail2-smtp-roc.national.inria.fr with ESMTP/TLS/DHE-RSA-AES256-SHA; 23 Apr 2009 12:34:33 +0200 Received: from nyc-qsv-mail1.delacy.com ([172.25.22.57]) by mx2.janestcapital.com with esmtp (Exim 4.69) (envelope-from ) id 1LwwGF-0001Gg-Tx; Thu, 23 Apr 2009 06:34:31 -0400 Received: from nyc-qsv-004.delacy.com ([172.25.22.194] helo=qsmtp.delacy.com) by nyc-qsv-mail1.DELACY.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) (envelope-from ) id 1LwwGF-0006lB-SW; Thu, 23 Apr 2009 06:34:31 -0400 Received: from lon-qws-008.delacy.com ([172.30.3.108] helo=lon-qws-008) by qsmtp.delacy.com with smtp (Exim 4.63) (envelope-from ) id 1LwwGE-0006Cb-Oc; Thu, 23 Apr 2009 06:34:31 -0400 Received: by lon-qws-008 (sSMTP sendmail emulation); Thu, 23 Apr 2009 11:34:30 +0100 From: "Mark Shinwell" Date: Thu, 23 Apr 2009 11:34:30 +0100 To: Alexey Rodriguez Cc: caml-list@inria.fr Subject: Re: [Caml-list] ocamlopt debugging options Message-ID: <20090423103430.GH29676@janestcapital.com> References: <4b39c80a0904230330r759d3429jae4146d2c2db7a36@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4b39c80a0904230330r759d3429jae4146d2c2db7a36@mail.gmail.com> User-Agent: Mutt/1.5.18 (2008-05-17) X-Spam: no; 0.00; shinwell:01 ocamlopt:01 0200,:01 ocamlopt:01 ocaml:01 23,:98 2009:98 wrote:01 caml-list:01 functions:01 constructs:02 debugging:03 programming:03 compiled:04 thu:05 On Thu, Apr 23, 2009 at 12:30:31PM +0200, Alexey Rodriguez wrote: > Sometimes it is useful to see what is the code produced by ocamlopt in > order to assess the performance of programming constructs. It is > possible to use -dcmm, but it is difficult to relate ocaml functions > to their compiled form due to the names used in the cmm dump. How do > you people get around that difficulty? I use objdump -Dr :) Mark