From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30527 invoked by alias); 24 May 2007 14:20:53 -0000 Received: (qmail 30519 invoked by uid 22791); 24 May 2007 14:20:51 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.250) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 24 May 2007 14:20:49 +0000 Received: by an-out-0708.google.com with SMTP id c3so51791ana for ; Thu, 24 May 2007 07:20:45 -0700 (PDT) Received: by 10.100.132.16 with SMTP id f16mr1519204and.1180016445709; Thu, 24 May 2007 07:20:45 -0700 (PDT) Received: by 10.100.95.20 with HTTP; Thu, 24 May 2007 07:20:45 -0700 (PDT) Message-ID: Date: Thu, 24 May 2007 14:45:00 -0000 From: "Mohamed Shafi" To: gcc-help@gcc.gnu.org Subject: Profiling information for powerpc target - GCC 4.1.1 MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org X-SW-Source: 2007-05/txt/msg00236.txt.bz2 Hello all, I am trying to generate profiling information for powerpc target (rs600) using cross compiler version gcc 4.1.1 and newlib 1.14.0 After i compile a file with -pg option and execute it no gmon.out file is produced. When i disassemble the obj file i can find a call to _mcount.But when i check the newlib sources the mcount call is actually a dummy function with the following code .file "mcount-dummy.S" .text FUNC_START(_mcount) mflr r11 lwz r0,4(sp) mtctr r11 mtlr r0 bctr FUNC_END(_mcount) I also couldn't find any particular startup file required for profiling. Does this mean that profiling is not supported for any powerpc target build with newlib? Is there support for profiling for powerpc target with glibc? Thanks for your time, Regards, Shafi