delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1998/01/27/08:17:36

From: Gruber Gerhard <g DOT gruber AT sis DOT co DOT at>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: RHIDE 1.4 and profiling
Date: Tue, 27 Jan 1998 13:43:29 +0100
Organization: APAnet
Lines: 40
Message-ID: <34CDD670.110E7B3E@sis.co.at>
References: <34CC8FFA DOT B58ED641 AT sis DOT co DOT at> <34CD02BA DOT CC423F10 AT gmx DOT net>
NNTP-Posting-Host: 192.56.14.75
Mime-Version: 1.0
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

Robert Hoehne wrote:
> 
> Gruber Gerhard wrote :
> >
> [...]
> > Any comments?
> 
> Yes! Please describe _exact_ what you did, and _exact_ what an error
> you got.

One sourcefile as project.
Options/Compilers/Debugging/-pg [x]
Options/Linker Options/ -pg

This leads to the commandline:

// this is ok.
gcc -g -pg -c damen.c -o damen.o

// this is not ok because the linker says 'unrecognized option -pg'
which is true.
ld -Xlinker -pg -o damen.exe damen.o


Removing the -pg from the "Linker Options" results in:
gcc -g -pg -c damen.c -o damen.o
gcc -o damen.exe damen.o

Which means that there is no profiling activated because the -pg option
has to be passed on to the linker.
The second call should read (in this case)
gcc -pg -o damen.exe damen.o
-- 

Bye,
   Gerhard

email: gruber2 AT ibm DOT net
       g DOT gruber AT sis DOT co DOT at
FIDO:  Gruber_Gerhard AT 2:310/81.11

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019