Xref: news2.mv.net comp.os.msdos.djgpp:4131 From: cranston AT mcn DOT net (Dave Smith) Newsgroups: comp.os.msdos.djgpp Subject: Re: Problems compiling for gprof Date: Tue, 21 May 1996 23:03:26 GMT Organization: Montana Communications Network Lines: 41 Message-ID: <4nttq2$7kh@news.mcn.net> References: <4nto0d$4uq AT news DOT mcn DOT net> NNTP-Posting-Host: blpm02-145.mcn.net To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp cranston AT mcn DOT net (Dave Smith) wrote: > 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 **************** should say PAGE fault >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. **************** should say PAGE fault > I am running DJGPP v2, with gcc v2.7.2. What >could be happening? Woops! PAGE fault, that is. programs compiled with profiling information generate a page fault, not a protection fault as I wrote above. Sorry. I would appreciate any help. Thanks! Dave Smith cranston AT mcn DOT net