View Single Post

   
  #5 (permalink)  
Old 01-05-2008, 10:46 AM
Gary R. Hook
 
Posts: n/a
Default Re: runtime identification of compiler through executable

caseyjbrotherton@gmail.com wrote:
> I don' t think there is a way to tell that
> a certain compiler has created an executable.


If the executable hasn't been stripped, dump -tv (to look at the
regular symbol table) will show you .file entries placed by
the xlc/xlC compilers. This information includes version number,
although not necessarily more detail than version/release.

There are so few compilers available for AIX that you can
usually figure out if it was the XL compilers (via
strings and dump) or gcc/g++ (via dump -Hv and looking at the
dependent modules).

Mostly, it's about derivation heuristics.

Reply With Quote