[prev in list] [next in list] [prev in thread] [next in thread] 

List:       hpux-devtools
Subject:    Re: HPUX-DEVTOOLS: Help in   CXperf
From:       mahesha <mahesha () india ! hp ! com>
Date:       2002-11-07 10:21:13
[Download RAW message or body]

On Thursday 31 October 2002 02:00 am, Vinod Tatireddy wrote:
> I had an executable built with C objects  having compilation options "+pal
> +O2" and  linked with aCC Compiler driver using the options "+pal +O3"  . I
> ran CXperf in GUI mode on these executable  by selecting all the routines
> at instrumentation phase but at the time of analyze phase after execution ,
> couldn't see any of the routines that i selected except main(). Can someone
> tell what is the wrong?
> BTW at the time of compilation i could  see a message  repeated many times
>   "DOC: add range: invalid base instruction"
> vinod

Can you verify one of the object files to see if the compiler has inserted the
NOPs or not ? Just take one of those source files containing other routine(s),
and produce an assembly listing  (.s) file with -S +pal +O2 options. Just 
check  if you see a Branch instruction (B) followed by a series of NOPs in 
the routines ? If yes then probably compiler is OK.  Next preinstrument the 
binary, and check to see if there are calls __cxperf_prev* routines inserted 
by cxperf. 
(if you don't know how to check the latter, drop me a mail offline). 

Are you using -g and +O2 ? Only then probably there is a chance that 
you will get "DOC: add range: invalid base instruction".

-mahesha
 _________________________________________________________________
 To leave this mailing list, send mail to majordomo@cxx.cup.hp.com
    with the message UNSUBSCRIBE hpux-devtools
 _________________________________________________________________
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic