[Icc-mot] Build/Link time
dieseinfo at free.fr
dieseinfo at free.fr
Fri Jun 1 07:00:50 PDT 2007
I tried ICC12 compiler about __FILE__ : the full path name is included.
But __STDC__ is unknown, without problem for me. Anyway I don't need it.
Best regards, and "all the best"
Joel
-----Message d'origine-----
De : icc-mot-bounces at imagecraft.com [mailto:icc-mot-bounces at imagecraft.com] De la part de John Baraclough
Envoyé : vendredi 1 juin 2007 11:19
À : Discussion List for ICC08/11/12/16 users. You do NOT need to subscribe toicc-announce if you are a member of this.
Objet : Re: [Icc-mot] Build/Link time
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
_______________________________________________
Icc-mot mailing list
Icc-mot at imagecraft.com
http://dragonsgate.net/mailman/listinfo/icc-mot
More information about the Icc-mot
mailing list