In article <4665a6e7$0$9320$88260bb3@news.teranews.com>, Rufus V. Smith
<nospam@nospam.com> writes
>Green Hills users,
>
> We have recently been converting from ARC processor to ARM
>processor. The ARC compiler allows inclusion of #print directives to
>output messages during compiling. e.g.
>
>#if defined(RED)
>#print red is defined
>#elif defined(BLUE)
>#print blue is defined
>#else
>#print neither red nor blue.
>#endif
>
>The old compiler printed messages when #print is encountered.
>My associate says the compiler doesn't like the #print directive.
>Is there a Green Hills equivalent preprocessor command?
>He couldn't find it.
>Rufus
Why not ask Green Hills Tech support?
--
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\
\/\/\/\/\ Chris Hills Staffs England /\/\/\/\/
/\/\/ chris@phaedsys.org www.phaedsys.org \/\/\
\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Reply by Pete Fenelon●June 6, 20072007-06-06
Rufus V. Smith <nospam@nospam.com> wrote:
>
> #if defined(RED)
> #print red is defined
> #elif defined(BLUE)
> #print blue is defined
> #else
> #print neither red nor blue.
> #endif
>
> The old compiler printed messages when #print is encountered.
>
> My associate says the compiler doesn't like the #print directive.
>
> Is there a Green Hills equivalent preprocessor command?
>
#print is nonstandard.
You could try #warning, but that might have other undesired side
effects.
pete
--
pete@fenelon.com "how many clever men have called the sun a fool?"
Reply by Rufus V. Smith●June 5, 20072007-06-05
Green Hills users,
We have recently been converting from ARC processor to ARM
processor. The ARC compiler allows inclusion of #print directives to
output messages during compiling. e.g.
#if defined(RED)
#print red is defined
#elif defined(BLUE)
#print blue is defined
#else
#print neither red nor blue.
#endif
The old compiler printed messages when #print is encountered.
My associate says the compiler doesn't like the #print directive.
Is there a Green Hills equivalent preprocessor command?
He couldn't find it.
Rufus