From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA23295; Sun, 29 Jun 2003 18:45:04 +0200 (MET DST) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id SAA22335 for ; Sun, 29 Jun 2003 18:45:03 +0200 (MET DST) Received: from pauillac.inria.fr (pauillac.inria.fr [128.93.11.35]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id h5TGj2j17478; Sun, 29 Jun 2003 18:45:02 +0200 (MET DST) Received: (from xleroy@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id SAA22489; Sun, 29 Jun 2003 18:45:01 +0200 (MET DST) Date: Sun, 29 Jun 2003 18:45:01 +0200 From: Xavier Leroy To: Norman Ramsey Cc: caml-list@inria.fr Subject: Re: [Caml-list] how to compile ocamlc.opt with profiling turned on? Message-ID: <20030629184501.A22983@pauillac.inria.fr> References: <20030626210831.0C04748DC@labrador.eecs.harvard.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 1.0i In-Reply-To: <20030626210831.0C04748DC@labrador.eecs.harvard.edu>; from nr@eecs.harvard.edu on Thu, Jun 26, 2003 at 05:08:31PM -0400 X-Spam: no; 0.00; caml-list:01 ocamlc:01 camlopt:01 -nostdlib:01 stdlib':01 stdlib:01 asmrun:01 ocamlrun:01 ocamlopt:01 compiler:01 profile:98 compile:02 boot:02 seems:05 opt:09 Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > We're seeing some long compile times from ocamlc and ocamlc.opt. > I would like to try to identify in what part of the compiler the > time is being spent, so for the last hour I have been trying to > compile ocamlc.opt with 'ocamlopt -p' so that I can profile the compiler. > But I have not been able to figure out how to do this. > > make CAMLOPT='ocamlopt -p -nostdlib -I stdlib' opt.opt > > does not seem to work. You're on the right tracks. The following seems to work: make world opt (cd stdlib; ln -s ../asmrun/libasmrunp.a . ) make CAMLOPT="boot/ocamlrun ./ocamlopt -nostdlib -I stdlib -p" \ ocamlc.opt ocamlopt.opt Hope this helps, - Xavier ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners