View Single Post

   
  #6 (permalink)  
Old 01-05-2008, 10:48 AM
shankha
 
Posts: n/a
Default Re: runtime identification of compiler through executable

i want to use this information in c code .. like if compiler=gcc then
do some few things
Gary R. Hook wrote:
> 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