[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: profile programs and tcl
From: |
Michael J. Lanham |
Subject: |
Re: profile programs and tcl |
Date: |
Fri, 23 Feb 2001 17:55:41 -0500 |
Okay, slap myself....I added a -ldl to the link line and got rid of the errors
below and gprof worked!
Now, can anyone explain to me why this had to be so difficult? Why does the
tcl library interfer with profiling? Why do I have to include -ldl when
linking with profile info?
Mike Lanham
> Well gentlemen,
>
> Having pounded my fists against the CISE stuff I can now say why profiling wa
> s
> not working for me...sort-of.
>
> Problem: my code was slow and I wanted to know where/why
> Answer: add -pg to the compile lines ***** AND ***** the link line
> failure to add it to link line causes a _mcount defined symbol error
>
> Problem: linking the tcl library in at link time (-ltcl) causes the following
>
> errors:
> Undefined first referenced
> symbol in file
> _dlopen /usr/lib/libp/libc.a(nss_deffinder.o)
> (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
> _dlclose /usr/lib/libp/libc.a(nss_deffinder.o)
> (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
> _dlsym /usr/lib/libp/libc.a(nss_deffinder.o)
> (symbol belongs to implicit dependency /usr/lib/libdl.so.1)
> ld: fatal: Symbol referencing errors. No output written to foo
> collect2: ld returned 1 exit status
>
> Answer: Not sure what to do about this but I know the -ltcl causes the
> problem. When I take it away from the link line, no problem.
>
>
> Nicky & Dr. Hanson, Amit's and my code runs in .89 secs when isolated from th
> e
> remainder of the program (includes building string, validating string, and
> converting string). We will continue to isolate why it takes 14 secs when no
> t
> Isolated.
>
> R/Mike Lanham
>
> --
> Michael Lanham
> CISE, Graduate Studies
> mlanham@cise.ufl.edu
> mlanham@attglobal.net
>
>
>
>
--
Michael Lanham
CISE, Graduate Studies
mlanham@cise.ufl.edu
mlanham@attglobal.net
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: profile programs and tcl,
Michael J. Lanham <=