AnsweredAssumed Answered

Creating variables of class in different section

Question asked by bookevg on Sep 24, 2011
Latest reply on Sep 26, 2011 by CraigG

I want to create class which can locate own variable in different section

For example:

class A

{

...

int var_in_dm_32bit;

#pragma section("seg_dmda_16")

int var_in_dm_16bit;

...

}

but the compiler out warning:
#pragma section before member "A::var_in_dm_16bit" has no effect.

I know if I declare the variavle as static it would be work, but I need the variable for each objects of class

Outcomes