View Single Post

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

shankha wrote:
> i want to use this information in c code .. like if compiler=gcc then
> do some few things


That's not a runtime assessment, it's a compile time assessment.
Just require your builder to use -DGCC or -DXLC and
use #ifdef GCC/etc in your code.
Reply With Quote