[Icc-mot] Build/Link time

John Baraclough j_baraclough at zetnet.co.uk
Fri Jun 1 02:19:17 PDT 2007


Note that in ICCAVR version 7, the __FILE__ macro originally resolved 
to the full pathname of the file. It has now been changed back to the 
same behaviour as in version 6 and returns only the filename. I don't 
know what the position is in ICCMOT.

It may be helpful to some users if there could also be a __PATH__ 
macro as an added bonus. ;-)

All the best for now,
John

At 17:29 31/05/2007, you wrote:
>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




More information about the Icc-mot mailing list