Operating System - HP-UX
1833588 Members
4158 Online
110061 Solutions
New Discussion

Is there cc which support debugging of optimized 64-bit code

 
김유성
New Member

Is there cc which support debugging of optimized 64-bit code

In my machine, cc compiler work well with '-g', '-O' options together when target binary is 32 bit.
But when target binary is 64 bit, it doesn't work.
Is there any cc compiler that support '-g', '-O' option together?

environment:
#uname -a
HP-UX tmaxh4 B.11.11 U 9000/800 2618835799
4 REPLIES 4
김유성
New Member

Re: Is there cc which support debugging of optimized 64-bit code

error message attachment

cc test.c -O -g +DA2.0W -o test_og -L. -lsh
cc: warning 483: The DOC (Debug of Optimized Code) option is unavailable with
e PA64 compiler; ignored.
Shay Zukerman
Occasional Advisor

Re: Is there cc which support debugging of optimized 64-bit code

Hi

I really don't think is possible since the code, which the compiler generates is purly optimized to the 64 bit cpu, which does some runtime descisions, and might modify the way the code works, so debugging information might not be too helpful.
If it calms you down - debugging and optimization do not dance together on other OS's like Sun Solaris.
Thanks
Shay
Auxilia Jansi Rani
New Member

Re: Is there cc which support debugging of optimized 64-bit code

If you are compiling on a PA64 machine and seeing this error message then try using the latest compilers.

The problem is not reproducible with my compiler cc version -

$ what /opt/ansic/bin/cc
/opt/ansic/bin/cc:
$Revision: 92453-07 linker linker crt0.o B.11.37 040218 $
LINT B.11.11.12 CXREF B.11.11.12
HP92453-01 B.11.11.12 HP C Compiler
$ PATCH/11.00:PHCO_27774 Oct 3 2002 09:45:59 $

Auxilia Jansi Rani
New Member

Re: Is there cc which support debugging of optimized 64-bit code

This feature is available in AR1204 Compiler for HP-UX. Contact the Response Centre to get this Compiler.