AnsweredAssumed Answered

How to make extern variable of a file stored into a section

Question asked by Yuehe Deng on Jan 3, 2017
Latest reply on Jan 4, 2017 by Yuehe Deng



   I know there is a way to store extern variables in a section defined in ld file as below:

__attribute__ ((section(".ccp_database1"))) struct  stDataCache stDataRamCacheA;

__attribute__ ((section(".ccp_database1"))) struct  stDataCache stDataRamCacheB;



But it is quite inconvenient if there are many extern variables in source files. Some compiler can do it by writing it in link file, for example TI CCS. Could S32 IDE  also have this feature?


My platform is: S32 IDE V1.1 + MPC574x