473,385 Members | 1,587 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

trying to use gprof, program compiled with -pg dies immediately


Is gprof on Solaris 9 X86 not as supported as Solaris 9 Sparc?

At work when we try to compile a program with -pg to use
gprof to performance profile our software, the compiled
app just dies instantly when it's started, no gmon.out
file is made and the core file can't be traced by ddd:

(it warns there's no symbols or no stack something like that).
We did remove /usr/lib from the LD_LIBRARY_PATH and
substituted it with /usr/lib/libp as stated in the man
page for gprof. The Gcc version is 2.95.3

Soon we'll have 3.X to try and maybe a newer patched version
of Solaris 9. I noticed that when I did the same process
to a small test program I compiled on a Sparc machine, gprof
worked fine (Sun Solaris 9 Sparc on a Enterprise server),
produced a gmon.out file and I could run it thru gprof to
see the trace output.

Mark
Jul 23 '05 #1
0 1215

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: takashi | last post by:
Hi, I am having trouble, using 'gnu profiler'. The problem is when I type: gprof executable_name I don't get any accumulated time for the execution of the program. The detail of what I have done...
3
by: Andrew Bonello | last post by:
Hi I have written a C++ program (Redhat Linux 7.2, gcc v2.96). The program makes a sequence of calls to rand() after having seeded the random number generator using srand( 0 ). Under normal...
0
by: Dave | last post by:
Hello, I would like to profile a Python program using gprof. I already rebuilt Python with CC="gcc -pg" ../configure. So, I should be able to use gprof. How do I do that? Should I first run...
1
by: Yan Yang | last post by:
Hi, I have a program and I want to test its execution time. When I run the program, I can feel it runs about 4 mins, but the gprof only says the accumlated time is 7.2 secs. Then I use the...
5
by: mattyulrich | last post by:
Hi - I'm having some trouble trying to run PurifyPlus in windows using cygwin. Just to try and get it rollin', I set up a basic helloworld.c program. I compile/link as: gcc -c helloworld.c...
1
by: Pasacco | last post by:
dear I need to know the execution time of the program. Below is just an example. I used to use gprof. But in this case, the error messsage says "gprof : gmon.out file is missing call-graph...
2
by: =?iso-8859-1?q?Nicolas_Herv=E9?= | last post by:
I am using gprof, and as explain in http://www.gnu.org/software/binutils/manual/gprof-2.9.1/html_node/gprof_18.html#SEC18 I could use the "-g -pg -a" options of gcc and then use the "-l -A"...
1
by: npd | last post by:
hi all , i want to find out how accurate is the result of gprof ? i want to find the optimized version of my program takes how much time and unoptimized takes how mch? i have tried gettimeofday(),...
1
by: Congcong | last post by:
When I use gprof to profile a program, it seems never show me the profile info on c lib routines such as malloc. But sometimes, profile info on such c lib routines are also important. I use 'gcc -g...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.