Content originally posted in LPCWare by CodeRedSupport on Wed Mar 16 04:40:26 MST 2011
As before, can you please provide an example that demonstrates this. If you don't want to paste your source, modify the example we posted so that it demonstrates your perceived problem.
However, when using Space optimization, the compiler does all sorts of things to reduce the size of your code, and so your table may not even have been allocated any space at all. For example, in the example we provided, the table is not created, and the values are inlined by the compiler.
Optimizing compilers can appear to do some very weird things to your code, but they will all be safe, and your code will still work. Sometimes, you have to give the compiler additional information to help it make the correct decisions - such as using 'volatile' when things really are volatile. Also if you are using aliases (e.g. using a pointer to a table that the compiler then removes) you have to tell the compiler you are doing that too.
Anyway, if you can provide an example, we can tell you what you need to do.