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
Green Hills ARM Compiler has no #print directive?
Started by ●June 5, 2007
Reply by ●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 ●June 6, 20072007-06-06
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. >RufusWhy not ask Green Hills Tech support? -- \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\ \/\/\/\/\ Chris Hills Staffs England /\/\/\/\/ /\/\/ chris@phaedsys.org www.phaedsys.org \/\/\ \/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/