[Icc-mot] Build/Link time

Gene Norris genenorris at spotengineering.com
Thu May 31 09:29:29 PDT 2007


Standard (ANSI) 'C' has 5 predefined macros:
Note: they cannot be undefined or redefined.

     printf("%s",__DATE__);
     printf("%s",__TIME__);
     printf("%s",__FILE__);
     printf("%d",__LINE__);
     printf("%s",(__STDC__)?"This is standard C.":"This is NOT standard 
C.");

Richard has added the following:
__IMAGECRAFT__

and others depending on the specific compiler used:
  	
_HC12
(For the hc12 compiler)

I believe there is also one based on the specific micro processor...but 
I'm not exactly sure

Gene

dieseinfo at free.fr wrote:
> Following the discussion about date and compile time, I discover here there are 2 symbolic constants __DATE__ and __TIME__, and this
> is very important for me too.
> 
> Are there other constants ? For example compiler version ?
> I did'n read anything about this.
> 
> Thank you all,
> Best regards.
> 
> Joel Petrique
> 
> 
> _______________________________________________
> Icc-mot mailing list
> Icc-mot at imagecraft.com
> http://dragonsgate.net/mailman/listinfo/icc-mot
> 
> 
> 

-- 
Gene Norris
Chief Engineer

SPOT Engineering, Inc.
1261 Campground Road
Lancaster, Ohio 43130
740.654.0880
FAX.654.0889

http://www.spotengineering.com/



More information about the Icc-mot mailing list