From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4852 invoked by alias); 4 Mar 2004 21:10:00 -0000 Mailing-List: contact gcc-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-owner@gcc.gnu.org Received: (qmail 4789 invoked from network); 4 Mar 2004 21:09:59 -0000 Received: from unknown (HELO mta6.wss.scd.yahoo.com) (66.218.85.37) by sources.redhat.com with SMTP; 4 Mar 2004 21:09:59 -0000 Received: from specifixinc.com (24.7.123.142) by mta6.wss.scd.yahoo.com (7.0.016) (authenticated as jim@tuliptree.org) id 404398390017E9C3; Thu, 4 Mar 2004 13:09:52 -0800 Message-ID: <40479B2C.1060003@specifixinc.com> Date: Thu, 04 Mar 2004 21:10:00 -0000 From: Jim Wilson User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.2) Gecko/20030716 MIME-Version: 1.0 To: perugupa@csee.wvu.edu CC: gcc@gcc.gnu.org Subject: Re: i am getting same profile(for gcc) for all testcases References: <33653.151.205.63.53.1078369383.squirrel@www.csee.wvu.edu> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2004-03/txt/msg00303.txt.bz2 perugupa@csee.wvu.edu wrote: > $ make -j8 all CFLAGS="-g -profile -O2" -profile isn't a gcc option. This might be the problem. Try -p or -pg. -pg will give more info. > this is what i am using to generate profile file. > gcc test.c > gprof -a /root/install/bin/gcc gmon.out > output > > I also tried this one > gprof -a /root/install/lib/gcc/TARGET/VERSION/cc1 gmon.out > output > > but i am getting the same profiles for any program i compile.i have been > struggling to get this done for a long time.can somebody please help > me.thanx in advance. It isn't clear what your problem is. What profiles are you getting? Why do you think they are wrong? Gcc contains multiple programs. If you compiled all of them with profile info, then the profile output files may be overwriting each other. Use gcc -v to see what all the gcc driver does, and try running individual programs instead of running the gcc driver. -- Jim Wilson, GNU Tools Support, http://www.SpecifixInc.com