View Single Post

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

shankha wrote:
> okay sorry .. i was not able to explain my problem
>
> suppose there is a executable
> gcc -g -o test test.c
>
> then when i do myproduct test ..
>
> inside that i want to find some way to find out if it was gcc or not
> and then set some boolean variable setgcc


Aside from heuristics that are based upon the symbol table or other
information, there's no reliable method to figure out how an
executable was constructed.
Reply With Quote