This is the mail archive of the gcc@gcc.gnu.org mailing list for the EGCS project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Need some help and info


Hi !

I have the program which opens executable and extracts information about the
static and global variables.
This program was designed for the executable files which were created by the
GCC compiler 2.7.2. on Linux version 2.0.27 for PC

When the new kernel 2.2 was installed with the  GCC 2.7.2.3 compiler and
0.5.24 Fortran compiler
I found that my program doesn't work.
The reason of it is that the "stabs" which described the symbols were
changed.
After running the objdump --stabs I found, for example the following:
The variable which is defined like
int i ;
is described  for 2.7.2 version:
305    STSYM  0      2      08050c78 5236   i:V20
For the 2.7.2.3 version it's description is
337    STSYM  0      2      080511a0 7580   i:V(0,20)

Because of this  I have some questions.

The only code which I have is the plain C and Fortran-77.

1.
 By using the 2.7.2.3 compiler can I generate the same type 
of executable like using 2.7.2 compiler.
( in terms that "objdump -- stabs"  will give me the same result) ?
 
 I tried to supress creation of the gdb extensions using
-gstabs option but managed to do this only for the C-files, not Fortran.

2.
 If there is no backward compatibility in the terms described above
can I use the package which is created by compiling gcc-2.7.2.3 and
fortran 0.5.18 together( I can build it like it described in README file) ?


Thank you 
Alexander Loksh
loksh@cae.ca


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]