Why icc-compiled executable has no debugging symbols found as below. But gcc-compiled executable has.
$ icc -g a.c
$ gdb a.out
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hchen021/a.out...(no debugging symbols found)...done.
(gdb) quit
$ which icc
/opt/icc/cc/11.2.010b/bin/icc
$
but gcc-compiled file has.
$ gcc -g a.c
$ gdb a.out
GNU gdb (GDB) Red Hat Enterprise Linux (7.0.1-23.el5)
Copyright (C) 2009 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-redhat-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /home/hchen021/a.out...done.
(gdb)
Link Copied
Hi,
Could you tell me the Intel Compiler version that you are using? You can find this by using the command :- "icc -V". Also let me know the GCC version being used.
Regards,
Sukruth H V
For more complete information about compiler optimizations, see our Optimization Notice.