From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23814 invoked by alias); 12 Sep 2004 02:55:39 -0000 Mailing-List: contact gcc-help-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Archive: List-Post: List-Help: Sender: gcc-help-owner@gcc.gnu.org Received: (qmail 23797 invoked from network); 12 Sep 2004 02:55:38 -0000 Received: from unknown (HELO yosemite.airs.com) (209.128.65.135) by sourceware.org with SMTP; 12 Sep 2004 02:55:38 -0000 Received: (qmail 4846 invoked by uid 10); 12 Sep 2004 02:55:37 -0000 Received: (qmail 10820 invoked by uid 500); 12 Sep 2004 02:55:28 -0000 From: Ian Lance Taylor To: gabrielt@cs.tamu.edu Cc: gcc-help@gcc.gnu.org Subject: Re: gmon.c References: <56c62a89040910074353ed863b@mail.gmail.com> Date: Sun, 12 Sep 2004 02:55:00 -0000 In-Reply-To: <56c62a89040910074353ed863b@mail.gmail.com> Message-ID: User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2004-09/txt/msg00100.txt.bz2 Gabriel Tanase writes: > I am interested to build gcc with a slightly modified gcc/gmon.c > file(instead of writing to the results into gmon.out I write the > results into gmon.out.PID where PID is the process id of the current > process). When I compile the sources(./configure > --prefix=/home/gabrielt/gnu ; make; make install or ./configure; make > bootstrap; make install) the gmon.c is never compiled. Can anybody > point me to some documentation about how I can compile and include a > modified gmon.c You neglected to say which type of system you are using. Normally functions like monstartup() come from your system libraries or startup files. The gmon.c file which comes with gcc is not normally used. Changing that gmon.c will normally not do anything at all. In fact, I suspect that gcc/gmon.c is never used at all. gcc does provide a gmon file on Solaris, but I think the sources are in config/sparc/gmon-sol2.c and config/i386/gmon-sol2.c. gmon.c was added by RMS on November 28, 1991, and appeared in the gcc 2.0 release. However, even back then I can't see anything which actually uses the file. Ian