Hi all,
I am using CW for the 9S08AW32 processor. I want copyright information to be part of the executable code as data. So, I have an array of characters for copyright information declared as "const char Copyright[] = { "Copyright 2008 ... All rights reserved." }; The problem comes in when the compiler wants to optimize Copyright out since it is not used. So, to get around the problem, I have a statement in main, "errorcode = Copyright[0];". My question: is there a way to tell the compiler to NOT optimize out the Copyright variable without using the assignment I made above? Thanks.
Lou