delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/05/22/05:05:18

Xref: news2.mv.net comp.os.msdos.djgpp:4124
From: cranston AT mcn DOT net (Dave Smith)
Newsgroups: comp.os.msdos.djgpp
Subject: Problems compiling for gprof
Date: Tue, 21 May 1996 21:24:28 GMT
Organization: Montana Communications Network
Lines: 25
Message-ID: <4nto0d$4uq@news.mcn.net>
NNTP-Posting-Host: blpm01-179.mcn.net
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

   I have a problem compiling programs with
profiling information. Normally, the programs
compile and run perfectly. However, the same
source generates a protection fault when compiled
with profiling information.

   normal compile line:
gcc -o texcubes -O2 -ffast-math -fpack-struct
-funroll-loops -m486 -Wall -I../h texcubes.cc
libartt.a      

   compile with profiling information:
gcc -o texcubes -O2 -ffast-math -fpack-struct
-funroll-loops -m486 -Wall -I../h -pg texcubes.cc
libartt.a                         ***
                                  ***

  All the programs I have tested profiling with
DJGPP are simple graphics programs of all
different sizes and varieties. Some profile
correctly and produce useful output. Most behave
as I described and generate a protection fault.
  I am running DJGPP v2, with gcc v2.7.2. What
could be happening?

- Raw text -


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